401 null Firebase error when tries to use FCM token from different SenderId #9984
Unanswered
FranciscoPDNeto
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use the retrieveFCMTokenforSenderID to send a firebase message from other firebase project. So basically I have the Firebase project of the app itself, where the APNs token is set, and the Firebase project of the server, where ideally would not have the app.
But when I have this scenario, it's throwing the exception
Unexpected HTTP response with status: 401 null
, which it seems to be because of the APNs.After I set the app on the server firebase project, with the APNs token, it started to work as expected. Even when I've deleted the app on the server firebase project, it continues to work, even for new devices (with different tokens).
Anyone knows if it's really necessary to set the app on the sender firebase project? On the firebase documentation it's not clear, and it sounds a little weird for me after removing the app from the sender firebase project the app continues to work
If it's not necessary, there is any other setting that I'm missing to be able to send messages through different firebase projects?
Beta Was this translation helpful? Give feedback.
All reactions