Closed acutedeveloper closed 3 years ago
Hi @acutedeveloper , I finally got the token, you need to set "messaging": false
and test your app in a real device, because with the simulator the onPushTokenReceivedCallback
is never called and the getCurrentPushToken
returns undefined
Thanks for the feedback @henrychavez. You are indeed correct. I managed to get this resolved
As the title suggests, I am using the Firebase plugin to provide a APNs token that I am sending to a external push notification provider.
I use the plug inside of a big project. Initially it was providing me with a APNs token via the firebase plugin. I recently made updates to NS CLI 7 & NS 7 and this is where the pain began!! I was not getting anywhere so I made a small repo to try and see what I was missing, but even here I am not successful. If I had a penny for time I ran ns clean today! My Repo is linked below:
github.com - Get iOS Token
I have followed the guides from here: configure-push-notifications-in-infoplist
With this basic setup
The console results are
onPushTokenReceivedCallback
does not appear to be called!I have tried to follow these issues for light:
FCM token is in a wrong format for iOS
Not receiving device token
Adding
"messaging": true,
to the firebase config provides me with a FCM token.I believe that I have followed all I should, but I am clearly missing something! @EddyVerbruggen If your expert eye spots anything obvious, I would be very grateful for assistance.
Thanks in advance all.