push Notification not working in ios ionic using FCM

3.9k Views Asked by At

i have setup all the steps for push notification using https://firebase.google.com/docs/cloud-messaging/ios/first-message#access_the_registration_token but i didn't get notification in ios App but working in Android App and also with http://pushtry.com .how to resolve this issue

1

There are 1 best solutions below

4
On

I was facing the same problem and after searching for a day here are my conclusions:

  1. Don't forget to allow for push notification in your App ID.Click on edit and then enable push notification.

  2. Make sure your certificates you are using are correct because as you allow for push notification your previous profiles become invalid(In my case they were).So either edit the provision profiles and download again or create new ones.

    3.I'll prefer using Apn-auth key as suggested on main firebase site instead of apns certificates.

4.One of the major point which I was missing was the problem with xcode Enable push notification there in the xcode as well which are not enabled by default.

  1. If your app is closing soon after opening your plist might be the cause Follow this answer for solution .
  1. Last thing that really helped me fix the issue was a mac OS update.I was trying to build using xcode 7.2 which was quiet dumb part on my side.There when I tried to enable push notification.It made changes to my certificates and then I downloaded the provisional profile after editing them(So valid now) and then build and everything started working fine as hell.