In my service i have a simple toggle function that to Enable / Disabled notifications with a toggle switch to fire it
It works, creates the token, saves to database and then removes it when toggled again.... the first time only.
steps to reproduce, click toggle 4 times
toggle = true; - works and updates database as expected.
toggle = false; - works and deleteInstance() is fired without error , however messaging occurs
toggle = true; works and updates database as expected.
toggle = false; fails with error
code: "The operation couldn’t be completed. Installation for appID appName __FIRAPP_DEFAULT not found"
In my service i have a simple toggle function that to Enable / Disabled notifications with a toggle switch to fire it It works, creates the token, saves to database and then removes it when toggled again.... the first time only.
steps to reproduce, click toggle 4 times
code: "The operation couldn’t be completed. Installation for appID appName __FIRAPP_DEFAULT not found"
errorMessage: "Cant delete Firebase Instance ID"
message: "Cant delete Firebase Instance ID"
And in my component;
the set token function