2025-03-07 13:48:16 +01:00
|
|
|
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.
|
2025-06-19 10:16:52 +02:00
|
|
|
'org.jitsi.meet.debug'
|
2025-03-07 13:48:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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());
|
|
|
|
|
}
|