Firebase Notification To Device with FCM Token Says Sent but not received

后端 未结 4 803
星月不相逢
星月不相逢 2020-12-31 15:54

I am attempting to send a simple push notification from the firebase notification console to a specific device using an FCM token. The firebase notification console shows t

4条回答
  •  醉话见心
    2020-12-31 16:25

    A couple of troubleshooting steps I use when working with push notifications are:

    1. Get push working independent of the firebase services first. I use this tool.
    2. Make sure that you dont have any bundle identifier namespace collisions. So for example having any combination of appstore build, testflight build, and / or develop build of an app on the device. Delete all but one instance of the app. The bundle identifier is how your device knows which app to route the push notification to.
    3. When all else fails - I try to isolate the issue by building a new sample project and hook it up to a new firebase project and see if I can narrow my focus down to just being able to get push working without any other business logic in my app. This helps me prove to my self that I haven't gone insane, and proves to me that it's not some mysterious network condition leading to my woes.

    I hope this helps you as you work get it all figured out.

提交回复
热议问题