12.6 C
New York
Wednesday, October 16, 2024

firebase – How you can ship push notifications to iOS from AWS Pinpoint?


I am attempting to ship push notifications from AWS Pinpoint. For years up till lately Pinpoint was in a position to hook up with Firebase Cloud Messaging and ship messages to each iOS (a number of bundle IDs) and Android, however iOS has stopped working for an unknown cause. The iOS messages used to ship from AWS Pinpoint -> Firebase -> APN -> System. I say this as a result of the Push Notification settings for AWS Pinpoint had solely Firebase Cloud Messaging (FCM) arrange with Token Credentials. No configurations for Apple Push Notification service (APNs) had been setup. So far as I perceive, this implies Pinpoint wasn’t utilizing APN to ship messages to iOS apps straight.

I carried out three exams.

  1. First, I used the “Take a look at Messaging” service of AWS Pinpoint to ship messages to newly generated FCNs, or system tokens (nonetheless with out the APN settings). Each Android and iOS resulted in:

Message despatched
Efficiently despatched push message.

Nevertheless, solely Android really acquired the push notifications. iOS didn’t obtain something regardless that no error occurred.

  1. Second, I arrange a marketing campaign within the “Messaging” part within the Firebase console to check sending push notifications. The entire Bundle ID’s registered in Apple App Configuration of Cloud Messaging settings efficiently acquired the notifications (the notifications really confirmed on apps). This proves that the APNs Authentication Keys for all of the Bundle IDs are right and the connection between the iOS apps and Firebase is correctly arrange.

  2. Lastly, I went again to AWS Pinpoint to arrange the APN settings for iOS with the identical Key ID, Bundle Identifier, Group Identifier, and the Authentication Key (the .p8 file) utilized in Firebase, considering possibly sending notifications on to apps bypassing Firebase may work. However, when executed a check in “Take a look at Messaging”, no notifications confirmed on apps regardless that AWS console confirmed “Efficiently despatched push message.”

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles