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

JavaScript not found on device

6 Answers 41 Views
AppBuilder in-browser 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.
Bruce
Top achievements
Rank 1
Bruce asked on 04 Jul 2013, 05:06 PM
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

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Jul 2013, 10:49 AM
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.
0
Bruce
Top achievements
Rank 1
answered on 08 Jul 2013, 03:38 PM
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
0
Steve
Telerik team
answered on 10 Jul 2013, 12:44 PM
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.
0
Bruce
Top achievements
Rank 1
answered on 17 Jul 2013, 05:58 PM
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
0
Bruce
Top achievements
Rank 1
answered on 17 Jul 2013, 06:01 PM
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
0
Steve
Telerik team
answered on 25 Jul 2013, 01:06 PM
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.
Tags
AppBuilder in-browser client
Asked by
Bruce
Top achievements
Rank 1
Answers by
Steve
Telerik team
Bruce
Top achievements
Rank 1
Share this question
or