Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6291

Onesignal push function does not exist on type 'typeof OneSignal'

$
0
0

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:


Viewing all articles
Browse latest Browse all 6291

Trending Articles