Voltaire
Posts: 0
Joined: Thu Apr 09, 2015 8:48 pm

Push Notification alert not working since update

Hello Evgene again :)

I did modify the plist file by adding the following

UIRequiresFullScreen

The application ran on iphone , registered itself and , yes as you mentioned before concerning the new phonegap plugin , it detects another device id.

Still that the user has to open the app after updating the version otherwise, he won't get a push notification since the old device id remains in the database but he app won't receive the push unless he opens the app after updating to register the new device id.

pakbull6772540
Posts: 0
Joined: Sun Mar 30, 2014 4:08 pm

Push Notification alert not working since update

Evgene,

Where is the "push" variable defined. I have tried to use the above, but it does not work and gives an error message. The PushInit Event is not called.

I have also tried PushNotification and that is also undefined.

I am using v3.0 latest build. I understand that the push plugin has changed, but need to know how and where the variable 'push' is defined.

Voltaire
Posts: 0
Joined: Thu Apr 09, 2015 8:48 pm

Push Notification alert not working since update

it is global variable , you can call it directly
this method is used to clear the badge icon on the IOS.

pakbull6772540
Posts: 0
Joined: Sun Mar 30, 2014 4:08 pm

Push Notification alert not working since update

Ok. But I am using v3.0 library and get the error "Can't find variable: push' no matter where I use it.

so obviously I am missing out on having this variable defined. Is there somewhere I need to initialize it?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Push Notification alert not working since update

Hello,

On Load event try this code:

pre
$(document).on("push-notification", function(event, data) {
//your code
});
/pre

Mauro Romer
Posts: 0
Joined: Fri Feb 05, 2016 11:52 pm

Push Notification alert not working since update

Alena,

It isn't work.

"push" variable not defined.

Can you help me, please.

Mauro Romer
Posts: 0
Joined: Fri Feb 05, 2016 11:52 pm

Push Notification alert not working since update

I opened a ticket with this problem.
https://apperyio.zendesk.com/hc/reque...
Please help, to publish my app with upgrade the Libraries Version 3.

Mauro
Posts: 0
Joined: Tue Jul 15, 2014 2:34 am

Push Notification alert not working since update

In android is work. And IOS Isn't work

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Push Notification alert not working since update

Hello Mauro,

We're working on it and will get back to you with the update via email.

Return to “Issues”