Search code examples
iosiphonefirebasepush-notificationfirebase-notifications

Firebase Send a Notification to a User Segment on iOS not working


I've installed according to the manual.

But only when I send the message to all iOS platform, only then I am getting the push notification. But when I am sending my massage to specific version or specific device for testing purposes, the massage is not received on the device. enter image description here enter image description here What could be the problem?

The strange thing, is when I ran the application with a new version, I do not see this version in the versions dropdown for couple of days. Even though that the code does reach

FIRApp.configure()

enter image description here

  • ran the code with 2.5.5 version

Solution

  • I was missing a pod :-/

    Instead of

    pod 'Firebase/Core'
    pod 'Firebase/Messaging'
    

    I had:

    pod 'Firebase/Core'
    

    Strangely, before the change, the project compiled and instanceID was generating, even though the pushes were not received to the device. Adding the missing pod fixed the problem.