[Messaging] On iOS onTokenRefresh not called / did I find a bug? #12200
Unanswered
ninoreiter
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
-
Hello community,
the past few days I read a lot about
onTokenRefresh()
not being called. Some quick-fixes may work but seem a bit hacky (e.g.deleteToken()
beforegetToken()
). Not sure, if it's me, but I couldn't make it work or it only works after a second try.The way I try to get a new token on iOS (clean install on real device) doesn't work.
Debugging / Bug?
I debugged FLTFirebaseMessagingPlugin.m and found out, FIRMessaging.m:862 receives a new token when
requestPermission()
is performed, but there is no FIRMessaging.delegate to pass the data to.Actually, FLTFirebaseMessagingPlugin.m:179 is meant to be the delegate but is not assigned. In previous commits I figured out,
FLTFirebaseMessagingPlugin.m
once was set to[FIRMessage message].delegate
but the line was removed.Before I create a bug-ticket, I first want to check with you, if this really is an issue.
Thank you.
Nino
Beta Was this translation helpful? Give feedback.
All reactions