arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1.01k stars 1.56k forks source link

Unable to receive push notification on IOS #338

Closed 05bca054 closed 6 years ago

05bca054 commented 7 years ago

Hello,

Thanks for nice plugin.

But i have tried all the steps trice but still i can't get notification on my ionic app.

  1. Crate push certificates.
  2. Upload to firebase console. etc...

In firebase console it says sent successfully but unable to receive it on application side.

Using this tutorial for integration https://ionicframework.com/docs/native/firebase/

Please advise.

soumak77 commented 7 years ago

@05bca054 if you're using cordova v7, the latest release is broken for iOS. I had to sync from master to get this plugin working.

soumak77 commented 7 years ago

Ignore my previous comment, I just noticed 0.1.22 was recently released

05bca054 commented 7 years ago

@Soumak77 I tried both the version today but none of them work it gives error in console like.

Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"

I think firebase faces problem to obtain APNS token somewhere

I have checked both(Dev & Prod) my p12 files working correctly for apns and same was uploaded to firebase ios app console.

Required app capabilities is also on and all the profiles and identifiers are correctly handle for signin version of IOS app but can't solved this issue.

hoonblizz commented 7 years ago

I had the same issue. But believe or not, the issue is resolved once I turn off the notification and turn it on again.

hoonblizz commented 7 years ago

Please ignore my previous comment. That method worked only for iOS9. In iOS 10, the same issue is still there.

mathieu21 commented 7 years ago

Same for me on iOS 10 no notifications received. Anyone found a fix for that ?

damianobarbati commented 7 years ago

Same here, no notification received no the device but I correctly get a message_id from fcm-push server side.

robertarnesson commented 6 years ago

closing for now, reopen if still an issue with the latest version of the plugin