roblav96 / nativescript-onesignal

A Nativescript plugin that wraps the iOS and Android OneSignal Push Notifications SDK.
https://documentation.onesignal.com/docs/getting-started
Other
24 stars 42 forks source link

iOS Push Notifications Not Working #26

Closed Ericky14 closed 6 years ago

Ericky14 commented 6 years ago

I followed the guide on the README and the android worked fine, but iOS won't even register a user. How exactly do I have to register an user and get the userId? I tried OneSignal.registerForPushNotifications and it didn't do anything either. Does it only work after the app is built and you get it from the app store? Or does it work with tns run ios to a physical iOS device too?

Ericky14 commented 6 years ago

Nevermind, I declared the Delegate in main.ts after bootstrapping the app, it has to be before...