JavaScript not found on device

7 posts, 0 answers
  1. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 04 Jul 2013 Link to this post

    All

    i am trying to use an external JavaScript file from Geoloqi. When I run on the Android simulator it seems to work, but on the device I keep getting an error "cannot find method init() of undefined. 

    Can anyone explain why this would get picked up in the simulator but not on the device? 

    Thanks
    B
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Jul 2013 Link to this post

    Hello Bruce,

    Your app B...der works as expected on our end on Android device. Can you share what is the model and OS version of the device you deploy to? Have you tried to debug your app and disable requirejs in order to pinpoint the problem? You can also post your inquiry on stackoverflow where other smart and experienced people can give you a clue what is happening.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
  3. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 08 Jul 2013 Link to this post

    Hi Steve,

    Thanks for your reply. I looked at my code again, and based on the geoloqi-client.js file, I shouldn't need require.js. The require.js file is in the project but it is not referenced anywhere. I think I had it in the project to try it. In the geoloqi-client.js file, they set var geoloqi = function. so I should be able to just call the geoloqi methods once the javascript file is loaded. Works on the simulator, but not on the phone.

    As for the device, I am running on a Nexus 4 running Android 4.2.2 

    Thanks,
    Bruce
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Jul 2013 Link to this post

    Hello Bruce,

    As we are unable to reproduce the problem can you prepare a short video (e.g. using Jing) and upload it to screencast, so we can see where the problem occurs. We get to your app index page without any errors, so if we need login credentials etc. to go to a page that exhibits the problem, please provide them in order to test.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
  5. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 17 Jul 2013 Link to this post

    Hi Steve,

    Sorry for the delay. I just added an account using "icenium" as both the username and password so you should be able to get past the login screen. The issue is at index.js line 119 where the geoloqi object is never found when run on the device.

    Thanks,
    B
  6. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 17 Jul 2013 Link to this post

    Hi Steve,

    Sorry for the delay. I just added an account using icenium as the login credentials so you should be able to get past the login screen. 

    Thanks,
    B
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Jul 2013 Link to this post

    Hello Bruce,

    It kind of works on our end and we get redirected to an "Alerts" view most of the time after a "success alert. Some times it fails with "The connection to the server was unsuccessful", but not the error you reported. Enabling debugging in the simulator, we see the following error in the geoloqi-client.js file.

    As the error is in the external js library, we suggest contacting its authors for more information.

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