Wednesday, February 8, 2023
HomeiOS Developmentswift - Switching firebase initiatives of an ios app not working for...

swift – Switching firebase initiatives of an ios app not working for fcm push notification


I am working with a pre-existing ios codebase the place fcm push notification is already carried out, nonetheless the firebase account the place the firebase challenge is has been misplaced throughout the transition and I needed to create a brand new firebase challenge. I added the app to the brand new firebase challenge, downloaded the GoogleService-info.plist file and added to the challenge, removed the outdated plist file, I additionally modified the URL scheme to the reversed shopper id of the brand new plist file, however when the app runs on a bodily system, it fails to name didReceiveRegistrationToken with errors like “Firebase set up registration failed”, “Couldn’t get token after 5 retries”, “The request completed with a 403 error, all requests on the firebase set up api are denied”. However I then eliminated the brand new plist file and put the outdated plist file again and in addition modified the url scheme, it labored and returned the fcm token, which means the configuration on the app facet is ok, word that I already uploaded APN key to the brand new firebase challenge, nonetheless did not work.

I’ve up to date my pods to the most recent firebase model, clear construct a number of occasions, restarted xcode.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments