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

Icenium Mist v1.3 PushPlugin Ad Hoc Distribution Bug

1 Answer 19 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 2
Joe asked on 22 Mar 2013, 02:30 AM
I installed and tested an iOS Ad Hoc distribution build of my app using PhoneGap Build with the GenericPush plugin and it worked fine. Eager to test Icenium's new support for this plugin, I imported the project, built and then installed the Ad Hoc build through Icenium Mist by scanning the QR code. Upon attempting to register the device for push notifications I get the error "Can't find variable: device" when it runs the following line of code (documented at https://github.com/phonegap-build/PushPlugin):

if (device.platform == 'android' || device.platform == 'Android') {
pushNotification.register(successHandler, errorHandler,{"senderID":"replace_with_sender_id","ecb":"onNotificationGCM"});
} else {
pushNotification.register(tokenHandler, errorHandler {"badge":"true","sound":"true","alert":"true","ecb":"onNotificationAPN"});
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Jordan
Telerik team
answered on 23 Mar 2013, 10:17 AM
Hi Joe,

Please check  that you have as first script reference in your html file:

<script src="cordova.js" type="text/javascript"></script>

Greetings,
Jordan
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
Report a bug
Asked by
Joe
Top achievements
Rank 2
Answers by
Jordan
Telerik team
Share this question
or