Here is the code:
OneSignal.push(() => { OneSignal.isPushNotificationsEnabled(function(isEnabled: any) { if (isEnabled) console.log("Push notifications are already enabled!"); else console.log("Push notifications are not enabled yet."); OneSignal.showHttpPrompt(); });
});
Hey I am trying to add the notification popup on mobile app through the above code, but this create the warning: