You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

embedUtils.native.ts 701B

1234567891011121314151617181920212223242526272829303132
  1. import { getBundleId } from 'react-native-device-info';
  2. /**
  3. * BUndle ids for the Jitsi Meet apps.
  4. */
  5. const JITSI_MEET_APPS = [
  6. // iOS app.
  7. 'com.atlassian.JitsiMeet.ios',
  8. // Android + iOS (testing) app.
  9. 'org.jitsi.meet',
  10. // Android debug app.
  11. 'org.jitsi.meet.debug',
  12. // 8x8 Work (Android).
  13. 'org.vom8x8.sipua',
  14. // 8x8 Work (iOS).
  15. 'com.yourcompany.Virtual-Office'
  16. ];
  17. /**
  18. * Checks whether we are loaded in iframe. In the mobile case we treat SDK
  19. * consumers as the web treats iframes.
  20. *
  21. * @returns {boolean} Whether the current app is a Jitsi Meet app.
  22. */
  23. export function isEmbedded(): boolean {
  24. return !JITSI_MEET_APPS.includes(getBundleId());
  25. }