App Instellingen

function nativelyOnLoad() { const info = new NativelyInfo() const app_info_callback = function (resp) { console.log(resp.device); // iPhone14,2 console.log(resp.osVersion); // 15.6 console.log(resp.osName); // iOS / Android console.log(resp.buildVersion); // 1.0.0 console.log(resp.buildNumber); // 1 console.log(resp.sdkVersion); // 3 console.log(resp.isDarkMode); // true/false }; info.getAppInfo(app_info_callback); // available starting from v2.12.2 const app_state_callback = function (resp) { if (resp.state) { // User opened the app (iOS “active”, android “resume”) console.log(“App went foreground”) } else { // User minimized the app (closed without exiting) // (iOS “inactive”, android “pause”) console.log(“App went background”) } } info.app_state(app_state_callback); } echo (info.app_state(app_state_callback); ?>