Reputation: 2095
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:
I researched and found out my iOS app build settings is incorrect as below:-
Then i configure my settings to screenshot below :-
and i encounter the error during archive the project, but no error during build the project.
Error during archive the project :-
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
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.
Upvotes: 2