onDeviceReady not triggering on Samsung Galaxy (Android 4.1.2)

3 posts, 0 answers
  1. Lukas
    Lukas avatar
    5 posts
    Member since:
    Mar 2013

    Posted 24 Mar 2013 Link to this post

    Hi,

    I used your empty project and in "onDeviceReady" I just insterted some alert code, or a simple text appending mechanism. This thing is called in graphite simulator, web simulator, but never on my real device.
  2. Lukas
    Lukas avatar
    5 posts
    Member since:
    Mar 2013

    Posted 24 Mar 2013 Link to this post

    Ok sorry, this was my fault.
    I was targeting /js/cordova.js. Which worked on simulator. of course it does not exist as it is in the root folder.
    Now it seems to work.
  3. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Mar 2013 Link to this post

    Hi Lukas,

    Your src attribute should not start with "/" as on the device the files are loaded from the local file system and should be relative to the index.html.

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