Icenium Mist v1.3 PushPlugin bug

3 posts, 0 answers
  1. Cadening
    Cadening avatar
    2 posts
    Member since:
    Mar 2013

    Posted 27 Mar 2013 Link to this post

    Trying to get this working but something is not right. (window.plugins is not defined). 

    <!--------------------index.html-------------------->
    <!DOCTYPE html> 
    <html>
        <head>
            <meta charset="UTF-8" />
            <title>Hello, World</title>
            <script src="cordova.js" type="text/javascript"></script>
            <script type="text/javascript" src="Plugins/PushPlugin/PushNotification.js"></script>
            <script>
            document.addEventListener("deviceready", onDeviceReady, false);
            
            function onDeviceReady() {
                /**
                 * test device : iphone5
                 * message : Cannot read property 'pushNotification' of undefined[alert(window.plugins) => undefined]
                 */
                alert("pushNotification:"+window.plugins.pushNotification);
            }
            </script>
        </head> 
        <body> 
            
        </body>
    </html>

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Mar 2013 Link to this post

    Hi Cadening,

    We have not been able to reproduce such problem with the code you provided. Have you by any chance forgotten to enable the PushPlugin in the Properties of your project (see screenshot)?

    Kind regards,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Cadening
    Cadening avatar
    2 posts
    Member since:
    Mar 2013

    Posted 27 Mar 2013 Link to this post

    i see。These code running in Ion,idon't mean it(PushPlugin is not supported in Ion,it sounds great!)
    -----------------------DOC/release notes/v1-3-release-notes
    PushPlugin support
    The Push Plugin allows push notifications on both Android and iOS devices. It is not supported in Ion.
    -----------------------
    right,this screenshot it's my product?
    i will go to sleep,bye!
    (oh,your avatar is cool,believe it or not。
Back to Top