1

I have followed all the steps mentioned in the official documentation. I am able to register device tokens in the application endpoint list successfully. The message has been published to registered tokens. The delivery status says success (status code 200) in cloud watch console. But the device isn't able to receive notifications in iOS devices. What could be the reason?

Note: I have enabled notification settings in devices and ios project.

nathan
  • 9,329
  • 4
  • 37
  • 51
Melody
  • 1,203
  • 2
  • 17
  • 28
  • Did you upload p12 certificate with correct format in SNS console? How did you generate p12 with private key or with out private key? – karthikeyan Jul 25 '17 at 12:59
  • Certificates. We were stuck for a while before trying to regenerate certificates from the ground up. The mistake we made was that we created certificates from an already used certificate request. We made a brand new one just for the purpose of SNS. – Crazyrems Jul 25 '17 at 14:41
  • Hi Karthikeyan, i have generated p12 file by exporting my certificate from keychain access under my certificate section. The p12 file generated with private key. – Melody Jul 26 '17 at 04:05
  • Hi Crazyrems, I have generated new certificate request and used this. Still it is not working. – Melody Jul 26 '17 at 04:06
  • Are you using Xamarin SDK or iOS SDK? Can you follow this documentation for iOS: http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html? – Rohan Dubal Jul 26 '17 at 06:24
  • See [these tips](https://stackoverflow.com/questions/45310259/firebase-notification-to-device-with-fcm-token-says-sent-but-not-received#comment77585055_45310259) – mfaani Jul 26 '17 at 13:31

2 Answers2

0

Double check the Message format setting. I ran into this same issue and the Cloud Watch console was reporting the message as sent even though I never received the message on my iOS devices. For me, messages were not received when the message format was set to JSON. Messages were received when the message format was set to Raw.

enter image description here

user3474985
  • 983
  • 8
  • 20
0

In my case, it was a problem on the mobile network as I have received the push notifications after changing my network Try changing your internet network used in your mobile and test again

Mohamed Saleh
  • 2,881
  • 1
  • 23
  • 35