PushPlugin Error

10 posts, 0 answers
  1. Cesar
    Cesar avatar
    3 posts
    Member since:
    Mar 2013

    Posted 24 Apr 2013 Link to this post


    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?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Apr 2013 Link to this post

    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.
  3. Cesar
    Cesar avatar
    3 posts
    Member since:
    Mar 2013

    Posted 25 Apr 2013 Link to this post

    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>
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Apr 2013 Link to this post

    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.
  5. Cesar
    Cesar avatar
    3 posts
    Member since:
    Mar 2013

    Posted 25 Apr 2013 Link to this post

    Thank you. Would you happen to have a link to a C# example for the server?
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Apr 2013 Link to this post

    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.
  7. Luke
    Luke avatar
    3 posts
    Member since:
    Jul 2013

    Posted 31 Jul 2013 Link to this post

    For some reason,  I still can't get the reference to the PushPlugin to work.

    Here is what I see.. see attached png

    Luke
  8. Luke
    Luke avatar
    3 posts
    Member since:
    Jul 2013

    Posted 31 Jul 2013 Link to this post

    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>

  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 01 Aug 2013 Link to this post

    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.
  10. Luke
    Luke avatar
    3 posts
    Member since:
    Jul 2013

    Posted 01 Aug 2013 Link to this post

    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
Back to Top