Links
ℹ

Browser Info

🧋 Bubble.io Plugin

[Element] Natively - Browser

Events:

  • Device went offline
  • Device back online

States:

  • isAndroidApp - Yes / No
  • isIOSApp - Yes / No
  • isNativeApp - Yes / No
  • Connectivity - Yes / No (Device is online or offline)

🛠 JavaScript SDK

Device App Info

1
// Check if native app
2
const browserInfo = info.browserInfo();
3
console.log(browserInfo.isAndroidApp);
4
console.log(browserInfo.isIOSApp);
5
console.log(browserInfo.isNativeApp);
6
​
7
// Check connectivity (internet connection);
8
window.ononline = (e) => { console.log("online") };
9
window.onoffline = (e) => { console.log("offlien") };