Messaging FCM token caching #6716
Unanswered
grigorigoldman
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It sounds like you are referencing the iOS platform? I don't think I can be authoritative here so I humbly suggest you either ask this on stackoverflow (which gets responses from the upstream firebase developers - it's their most official support channel I think) or on the firebase-ios-sdk repo itself |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to understand how
getToken
function works inreact-native-firebase/messaging
module.From documentation, it implies that it retrieves the token from Firebase, however, I noticed that even if there is no network connection, I can still get the token. This suggests that perhaps it is stored somewhere on the device but I cannot see this documented anywhere.
I checked Firebase SDK documentation as well but there's no mention of storing the token on the device there either. In fact, the opposite is described. For example, retrieveFCMToken(forSenderID:) says that "This registration token is not cached by FIRMessaging."
How is it that calling
getToken
function without network connect returns a current, valid FCM token?Beta Was this translation helpful? Give feedback.
All reactions