aznelite89
aznelite89

Reputation: 2095

FCM production APN not working

I'm using Firebase and FCM, APN was working perfectly in development mode.

After i upload the app to the app store successfully, APN was not working anymore. (Unable to receive any push notification on iOS devices)

Then I uploaded the production certificate to the firebase console accordingly as below: -

APN Certificates on firebase console: enter image description here

I researched and found out my iOS app build settings is incorrect as below:-

Initial Build Settings :- enter image description here

Then i configure my settings to screenshot below :-

Current Build Settings :- enter image description here

and i encounter the error during archive the project, but no error during build the project.

Error during archive the project :- enter image description here Can someone point me the right way to setup the apn on production mode?

Would be appreciated if any suggestion provided.

Upvotes: 2

Views: 2544

Answers (1)

sohan vanani
sohan vanani

Reputation: 1574

It's not an issue of your FCM Configuration. Change your General Setting of your target as per screenshot.

Uncheck Automatically manage signing from General Setting and choose right certificates for Code Signing Identity from Build Setting.

enter image description here

Upvotes: 2

Related Questions