I have a webview that captures the device token using the firebase library and then sends it to my url via get. Until then, I was able to get the token, and I can send it to the url and in the back end I already enter the database, td quietly, the problem I am having is the first time the application is opened after it is installed it requests my permission to receive notifications, however with this I can not send the token to the url because the same ñ is generated. Is there any way to call a function after I click enable?