You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to use your library as a reference to help me migrate my firebase-messagingpython library to the new FCM api. I noticed you have commented out refreshFCMInstallationToken as the requests were failing for you. I was able to get this working in my lib so thought I'd share this with you as you may want to implement it in future.
The way I got mine working was to use a modified url to include installations in front of the fid and also pass the api key in the header. Code snippet is below.
This then returns a new token with a new expiry time. I did wonder though what will happen when the existing token expires. Will it affect the registration token at all or does this just mean that a fresh installation will be required if a new registration token is needed? I'm not sure if you know the answer to this or have any thoughts...
Hi there,
I was able to use your library as a reference to help me migrate my
firebase-messaging
python library to the new FCM api. I noticed you have commented outrefreshFCMInstallationToken
as the requests were failing for you. I was able to get this working in my lib so thought I'd share this with you as you may want to implement it in future.The way I got mine working was to use a modified url to include
installations
in front of the fid and also pass the api key in the header. Code snippet is below.This then returns a new token with a new expiry time. I did wonder though what will happen when the existing token expires. Will it affect the registration token at all or does this just mean that a fresh installation will be required if a new registration token is needed? I'm not sure if you know the answer to this or have any thoughts...
The text was updated successfully, but these errors were encountered: