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

PushPlugin Error

9 Answers 61 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cesar
Top achievements
Rank 1
Cesar asked on 24 Apr 2013, 08:39 PM

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

Sort by
0
Steve
Telerik team
answered on 25 Apr 2013, 07:28 AM
Hi Cesar,

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.
0
Cesar
Top achievements
Rank 1
answered on 25 Apr 2013, 02:32 PM
Thank you for replying. I get the same error. GET http://local/Plugins/PushPlugin/PushNotification.js 502 (Fiddler - DNS Lookup Failed)

<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>
0
Steve
Telerik team
answered on 25 Apr 2013, 03:06 PM
Hi Cesar,

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.
0
Cesar
Top achievements
Rank 1
answered on 25 Apr 2013, 04:43 PM
Thank you. Would you happen to have a link to a C# example for the server?
0
Steve
Telerik team
answered on 26 Apr 2013, 07:36 AM
Hi Cesar,

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.
0
Luke
Top achievements
Rank 1
answered on 31 Jul 2013, 06:06 PM
For some reason,  I still can't get the reference to the PushPlugin to work.

Here is what I see.. see attached png

Luke
0
Luke
Top achievements
Rank 1
answered on 31 Jul 2013, 06:09 PM
Exactly this: 

    <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>

0
Steve
Telerik team
answered on 01 Aug 2013, 07:31 AM
Hi Luke,

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.
0
Luke
Top achievements
Rank 1
answered on 01 Aug 2013, 08:57 PM
OH finally an explanation.  Ok.  Trying it now... I built and deployed to an android, yup you are right.. it still works.  Super awesome, looking forward to the Icenium update.  You guys rock!

Luke
Tags
AppBuilder Windows client
Asked by
Cesar
Top achievements
Rank 1
Answers by
Steve
Telerik team
Cesar
Top achievements
Rank 1
Luke
Top achievements
Rank 1
Share this question
or