I understand that IOS is case sensitive, and I've checked the casing like 4 times and this does not work.
<script src="/Plugins/PushPlugin/PushNotification"></script>
Any thoughts?
9 Answers, 1 is accepted
It should be:
<script src=
"Plugins/PushPlugin/PushNotification.js"
></script>
Greetings,
Steve
the Telerik team
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
<script src="Plugins/PushPlugin/PushNotification.js"></script>
<script type="text/javascript">
</script>
<script>
function initPushwoosh() {
var pushNotification = window.plugins.pushNotification;
pushNotification.register(successHandler, errorHandler, {"projectid":"<mykey>","appid":"<mykey>"});
function successHandler (result) {
alert('result = ' + result)
}
function errorHandler (error) {
alert('error = ' + error)
}
function tokenHandler (result) {
// Your iOS push server needs to know the token before it can push to this device
// here is where you might want to send it the token for later use.
alert('device token = ' + result)
}
}
$(function() {
initPushwoosh();
});
</script>
The PushPlugin would not work in the simulator, it has to be deployed on actual device. It also requires special provision and it cannot be ran without it, which also means that it would not work on Ion on iOS.
Please review carefully the instructions given in the PushNotification blog post (Push Notifications With Cordova & Icenium), as well as the attached application and server at its end.
On a side note, you're missing reference to cordova and Pushwoosh is a separate plug-in and service that is not related to the generic PushPlugin we support in any way.
All the best,
Steve
the Telerik team
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
Check out the following blog post, there is pretty decent explanation and sample server attachment at the bottom of the article. Note that this has not been tested on our end and it is up to you to get it working.
All the best,
Steve
the Telerik team
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
Here is what I see.. see attached png
Luke
<head>
<meta charset="UTF-8" />
<title>Hello, World</title>
<link href="jquery-mobile/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script src="cordova.js" type="text/javascript"></script>
<script src="Plugins/PushPlugin/PushNotification.js"></script>
<script src="jquery-mobile/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="jquery-mobile/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="js/hello-world.js" type="text/javascript"></script>
<!--<script src="js/push.js" type="text/javascript"></script>-->
</head>
The error is thrown because the PushNotification.js file is not physically present in your project (it is in the cloud), so you can safely ignore it. This behavior can only be observed if you are working with the Integrated Plugins, which are now obsolete and would no longer be updated. In fact in the upcoming version of Icenium next week, we would offer you the option to copy the files of any integrated plug-ins into your project and this error would be no more.
Regards,
Steve
Telerik
Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Luke