This question is locked. New answers and comments are not allowed.
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"});
}
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"});
}