cordova-ios-voip-push icon indicating copy to clipboard operation
cordova-ios-voip-push copied to clipboard

Can't receive token in release version

Open EugeneSnihovsky opened this issue 6 years ago • 10 comments

Hi! Thanks for great plugin!

My application is configured by your guide and all works like a charm, but only when I launch app in debug mode

XCode - product - scheme - edit scheme - run - build configuration - debug

on('registration', ...) callback successfully fired, I receive token and can send to it notifications and receive them on device

When I launch in release mode - on('registration', ...) callback doesn't fire at all. Also on('error', ...) callback also not fired and device logs are empty.

Maybe you know what could be the problem?

Thanks in advance.

EugeneSnihovsky avatar Apr 17 '18 14:04 EugeneSnihovsky

I am having the same exact problem. I've tried with regular distribution and enterprise distribution but I never get a token. Works perfectly in debug mode. Don't get any error handlers firing either.

jonathanhollander avatar Apr 17 '18 20:04 jonathanhollander

Hi Hitman666, I know this is a free plugin you created so not a lot of incentive to make sure it's update to date/always working, but it'd really appreciate if you could take a look, I'm thinking it's something small as it does work just not in release mode. I'm actually updating an app that had this plugin working correctly with it (1.0.1), but I think maybe an iOS11 change did something, because if I try that version as well, it's no longer working.

jonathanhollander avatar Apr 20 '18 18:04 jonathanhollander

Hey guys,

I'm just acknowledging that I do read these and that I'm going to check. I can't promise that this will be before next weekend though :/

Hitman666 avatar Apr 21 '18 09:04 Hitman666

@Hitman666 thanks for answer. Maybe it will be helpful. I tested phonegap-plugin-push that based on your plugin and it work in release mode. Probably you can find fixes for your module there

EugeneSnihovsky avatar Apr 22 '18 17:04 EugeneSnihovsky

@Hitman666 thanks for lettings us know. Really appreciate the work you do!

Also, I've come to try the phonegap-plugin-push that @EugeneSnihovsky mentioned, and can confirm it is working correctly in release mode for VoIP pushes. Now given that I believe you created this plugin because you wanted the phonegap-plugin-push to support VoIP but it didnt (https://github.com/phonegap/phonegap-plugin-push/issues/728#issuecomment-250848104) .... you maybe could save yourself sometime and depreciate it. I don't mean any disrespect at all by saying this,... just if the original thing you wanted now is the way you originally wanted it, you could save the hassel. I guess though yours is sorta a standalone plugin without all the extras the phonegap-plugin-push forces upon you.... so maybe everything I wrote is wrong but maybe food for thought.

jonathanhollander avatar Apr 23 '18 14:04 jonathanhollander

Any updates?

staskuban avatar Jul 24 '18 12:07 staskuban

@staskuban it seems that author has no time for plugin.

  1. You can use phonegap-plugin-push with voip on mode

  2. if you use some other plugin, that required cordova-plugin-cocoapod-support, you will face error with missed cocoapods dependencies ([email protected] is broken and can handle only one cocoapod dependency for whole project). You can handle this by creating your own plugin based on phonegap-plugin-push (just remove all android and other paths, and clear plugin.xml) and you will not need cordova-plugin-cocoapod-support anymore

  3. to get release token you will also need to set in Xcode release ad-hoc provision profile manually. With auto configuration (auto signing) you will also receive development token (Xcode bug)

EugeneSnihovsky avatar Jul 25 '18 13:07 EugeneSnihovsky

it would be great if this could be fixed!

kpwa avatar Nov 03 '18 07:11 kpwa

@EugeneSnihovsky We are using phonegap-plugin-push for normal Push Notifications. Is it possible to use both VoIP push + normal notifications at the same time with phonegap-plugin-push ?

AleksandarTokarev avatar Sep 08 '20 10:09 AleksandarTokarev

@AleksandarTokarev Unfortunatelly I don't know answer for your question. It took a long time and I don't remember the details, but in that project I completely abandoned the cordova-ios-voip-push and use phonegap-plugin-push to receive VoIP notifications.

When I finish project in 2018 I stopped working with ionic/cordova and forgot them like a bad dream. If you're still at the prototyping stage I recommend you switch to react-native. The ionic/cordova comunity is dead. Especially with regard to native functionality. You will have to solve all arising problems yourself

EugeneSnihovsky avatar Sep 08 '20 11:09 EugeneSnihovsky