Also the app is failing to fetch the APNS token after the first run.
<FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
On iOS my app receives the notification in the tray, but when I tap it and the app starts, I can't process the notification data (because I don't receive an onNotification event... :-/
The application correctly gets notifications both when it is closed (it goes to the notification tray) and when closed (as logged into Xcode)
But the
onNotification
event is never triggered.I am just doing:
FCMPlugin.onNotification(function (data) { alert('notification') })
Also the app is failing to fetch the APNS token after the first run.
<FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"