This is a migrated thread and some comments may be shown as answers.

Problem while implementing push plugin

4 Answers 74 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Leon
Top achievements
Rank 1
Leon asked on 24 Apr 2013, 04:11 AM
Hi,
I've tried to implement push plugin in my application as described in the following link
http://www.icenium.com/community/blog/icenium-team-blog/2013/04/17/push-notifications-with-cordova-icenium

But the problem is push plugin is not working.
its not giving any error or not giving any device token information.
while debugging it goes into this function  
cordova.exec(successCallback, errorCallback, "PushPlugin", "register", [options]) but never come back from this.!!
so please help me out to solve my problem.



4 Answers, 1 is accepted

Sort by
0
David Silveria
Top achievements
Rank 1
answered on 24 Apr 2013, 11:29 AM
Leon, the blog post presents detailed instructions with runnable server and application attached to it, it cannot get more streamlined than this. Myself and other users have already been able to run it successfuly and notifications are send and received. Still there are some other problems that are with the plug-in itself, maybe you're referring to one of those (see http://www.icenium.com/community/forums/report-a-bug-/push-notification-issues)?

If not go through the blog post again and make sure to follow all instructions. Have you checked whether your server and app are connected to the same network?
0
Leon
Top achievements
Rank 1
answered on 24 Apr 2013, 12:27 PM
Thank you David for your reply.
I am trying this application in icenium ion in ipad.
and my main problem is my push notification plugin is not loading.
I have to put PushNotification.js manually into another folder and then its get loaded.
after that in simulator it gives cordova not defined error so i tried in ion and in that i am not getting alert message of 
"No valid 'aps-environment' entitled string found for application" as described in 
http://www.icenium.com/community/blog/icenium-team-blog/2013/04/17/push-notifications-with-cordova-icenium.
 because right now i've not added provision. 
so please help me out. 





0
Accepted
David Silveria
Top achievements
Rank 1
answered on 24 Apr 2013, 01:36 PM
This only proves that you're not reading the blog carefully. PushPlugin requires special provision and it cannot be ran without it, that is why those instructions are given. This also means that it would not work on Ion.

Cheers
0
Leon
Top achievements
Rank 1
answered on 25 Apr 2013, 06:18 AM
Thanks a lot for your valuable help David.
Finally i got the device token.
My main problem was, i was trying it in ion and push plugin not works in ion.
child browser plugin works with ion that's why i was trying it in ion.
when i added provision and run it in device it works.
kudos to that.

Tags
General Discussion
Asked by
Leon
Top achievements
Rank 1
Answers by
David Silveria
Top achievements
Rank 1
Leon
Top achievements
Rank 1
Share this question
or