Closed hinodi closed 4 years ago
Same issue goes for me.
it started working when i turned on Push Notifications in Capbilities Here is my settings which works:
I hope this helps
it started working when i turned on Push Notifications in Capbilities Here is my settings which works:
I hope this helps
Works well Thanks
Even with this capability on, I don't reliably register a voip token. Is there a way to retrieve the token if it's already been registered? Or does it fire the register call every time?
Under development ( build via xcode and test ), no matter Debug or Release, for some unknowing reasons, especially when you install/uninstall switching between Release/Debug
, will happen.
Even we can see we've call register
successfully, the ios just stop call didUpdatePushCredentials
so you never get refreshed token...
There are bunch of questions on the internet, the solution in short:
Then rebuild.
The most upvoted option is: reboot your device and mac.
Sometimes everything did not work, but only after few hours, it worked suddenly.
Maybe apple's push token server somehow banned the developing app (?)
Anyway, if all steps didn't work. You just uninstall app, clean all data and restart all devices and mac ( close xcode ), then just do another thing. Then try it maybe 2~3 hours later. :(
AFAIK, from my limited experience, there is no way to retrieve / refresh / revoke tokens. The only thing you know is the token previous stored on your server.
Please share if somebody knows some tricks, even evil's one. :)
I did all this things and yet, no device token... Can anyone help me with this? Simple demo:
https://github.com/djalmajr/CallKeepDemo
PS.: Did not work on iOS 13.x
@djalmajr hard reset your device. It should work
Under development ( build via xcode and test ), no matter Debug or Release, for some unknowing reasons, especially when you install/uninstall switching between
Release/Debug
, will happen.Even we can see we've call
register
successfully, the ios just stop calldidUpdatePushCredentials
so you never get refreshed token...There are bunch of questions on the internet, the solution in short:
- clean all data / cache you can, including xcode's Derived Data
- disable / re-enable push related capabilities and background mode
- disable / re-enable signin related auto manage
Then rebuild.
The most upvoted option is:
reboot your device and mac.
Sometimes everything did not work, but only after few hours, it worked suddenly.Maybe apple's push token server somehow banned the developing app (?)
Anyway, if all steps didn't work. You just uninstall app, clean all data and restart all devices and mac ( close xcode ), then just do another thing. Then try it maybe 2~3 hours later. :(
"Sometimes everything did not work, but only after few hours, it worked suddenly." happend to me as well.
I am having the same issue nothing worked. Please help if anyone made it work. Thanks in advance
What do I do, my 'register' never gets invoked, how do I solve this?
Even with this capability on, I don't reliably register a voip token. Is there a way to retrieve the token if it's already been registered? Or does it fire the register call every time?
Did you manage to find a way to reliably register a voip token? mine stopped calling 'register' randomly
Same issue, Never triggered i try to everythings..
In my case event is getting called but, the token is coming as empty string always. Please help./
I was config successfully, but this listener never trigger. Here is my code: VoipPushNotification.addEventListener('register', token => {
});