simodev
simodev

Reputation: 81

Firebase push notifications not working on TestFlight/adHoc release

I developed an app with push notifications, I uploaded it to the AppStore and everything worked fine, notifications did arrive. I now have updated the app to open an url when users taps on the notification. While testing in debug mode with device connected through cable everything works fine.

The problem is that if I release the app through TestFlight (setting FIRInstanceIDAPNSTokenType.Prod), the device will not receive any notification.

I have been struggling for a couple of days, I thought there was a certificate problem, so I reset development and release certificates and also updated the firebase .p12 certificates.

I am developing under Xcode 7.3.1 using swift 2.

Did I miss something?

Thank you

Upvotes: 3

Views: 5650

Answers (2)

xhinoda
xhinoda

Reputation: 1068

Finally work for me...

Here my steps:

1 - Make sure to Enable FirebaseAppDelegateProxyEnabled to YES in the info.plist

2- Revoke your certificate (APNS develop and distribution) and create a news ones

3 - NOTE: there is an error in the Firebase documentation. When you exporting the APN certificate for production from your keychain to the .p12 file you have to select the actual certificate, not the private key.

4 - Make sure you upload to the Firebase console this .p12 file in the Cloud Messaging APN certificate settings.

5- Send remote notification with Firebase Console.

Thanks to all..!

Upvotes: 13

Hoang Aloevera
Hoang Aloevera

Reputation: 131

Try to turn on and on cellular data by tapping Settings > General > Cellular.

Upvotes: 0

Related Questions