snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
36
react/features/base/util/embedUtils.native.ts
Normal file
36
react/features/base/util/embedUtils.native.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { getBundleId } from 'react-native-device-info';
|
||||
|
||||
/**
|
||||
* BUndle ids for the Jitsi Meet apps.
|
||||
*/
|
||||
const JITSI_MEET_APPS = [
|
||||
|
||||
// iOS app.
|
||||
'com.atlassian.JitsiMeet.ios',
|
||||
|
||||
// Android + iOS (testing) app.
|
||||
'org.jitsi.meet',
|
||||
|
||||
// Android debug app.
|
||||
'org.jitsi.meet.debug'
|
||||
];
|
||||
|
||||
/**
|
||||
* Checks whether we are loaded in iframe. In the mobile case we treat SDK
|
||||
* consumers as the web treats iframes.
|
||||
*
|
||||
* @returns {boolean} Whether the current app is a Jitsi Meet app.
|
||||
*/
|
||||
export function isEmbedded(): boolean {
|
||||
return !JITSI_MEET_APPS.includes(getBundleId());
|
||||
}
|
||||
|
||||
/**
|
||||
* React Native has no concept of same-domain embedding. SDK consumers are
|
||||
* always treated as cross-domain embeddings.
|
||||
*
|
||||
* @returns {boolean} Always false in React Native.
|
||||
*/
|
||||
export function isEmbeddedFromSameDomain(): boolean {
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user