-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deleteToken does not support serviceWorkerRegistration
option like getToken
#8621
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I glanced through the code briefly and it looks like the way it's supposed to go is:
It seems like if Is |
Likely. |
Yes, I think that you probably should call I think this should fix your problem for now, I'll leave it up to the FCM team if they think a serviceWorkerRegistration option on deleteToken is a feature they think should be added. |
Operating System
all
Environment (if applicable)
all
Firebase SDK Version
10.14.1
Firebase SDK Product(s)
Messaging
Project Tooling
n/a
Detailed Problem Description
When using getToken your function you can provide your own service worker registration file, not needing it to be name
firebase-messaging-sw.js
it all works fine with getToken, but if you use deleteToken firebase throw an error:with no way to pass the same options.
Steps and code to reproduce issue
Same as description
The text was updated successfully, but these errors were encountered: