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

requirejs wont load scripts on icenium ion ios

5 Answers 64 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gal
Top achievements
Rank 1
Gal asked on 20 May 2013, 07:10 AM
Runs in simulator, based on this blog post: http://codingwithspike.wordpress.com/2012/11/30/making-a-well-structured-kendo-ui-mobile-app-in-icenium-with-require-js/

However, the scripts just don't run on Ion. 

<script src="cordova.js"></script>      
 <script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script data-main="scripts/main" src="scripts/libs/require.js"></script>



5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 May 2013, 12:24 PM
Hi Gal,

It is not clear from your post whether the problem occurs only when you deploy on your ION enabled device or when you deploy with a provision to your IOS as a whole (what about Android?).

We suspect that the issue might be similar to the one you've reported with Headjs in this thread. You can remove google maps for the sake of testing and see whether requirejs works. You can also export your project, host it on a web server and access it in Mobile Safari to see whether it works outside Icenium/Cordova. If google maps is the problem, you might want to try the advice given in this thread.

All the best,
Steve
the Telerik team

Don't miss the Icenium May Release Keynote - sign up now!
Share feedback and vote for features on our Feedback Portal.
0
Gal
Top achievements
Rank 1
answered on 20 May 2013, 04:53 PM
If you look at the snippet I posted, i purposely did not include the google maps api with my requirejs calls because I already knew from my previous post that the api does not work well with script loaders.

In fact, you can remove that whole script tag all together, and still the problem persists.

I remade the example from the blog post, stripping away everything from my code that could cause any issues. The problem still presists.

In icenium Ion, on iphone 4,  it doesnt work. I havent yet tried it with a packaged app, but i have tried it in the simulator and in safari mobile, where it works just fine, as you can see here:https://projects-galcohen.rhcloud.com/spiremobile4/
0
Gal
Top achievements
Rank 1
answered on 20 May 2013, 04:53 PM
If you look at the snippet I posted, i purposely did not include the google maps api with my requirejs calls because I already knew from my previous post that the api does not work well with script loaders.

In fact, you can remove that whole script tag all together, and still the problem persists.

I remade the example from the blog post, stripping away everything from my code that could cause any issues. The problem still presists.

In icenium Ion, on iphone 4,  it doesnt work. I havent yet tried it with a packaged app, but i have tried it in the simulator and in safari mobile, where it works just fine.
0
Gal
Top achievements
Rank 1
answered on 20 May 2013, 05:18 PM
Just tried this on a packaged ios app, works fine there too. it seems that only on icenium ion the app doesn't work.

0
Steve
Telerik team
answered on 21 May 2013, 01:57 PM
Hello Gal,

Thank you for the additional information and for the sample project. We have the following comments:

  1. Your app worked fine on iPhone 4 S with iOS 6.1.3 in our local tests. Are you using latest iOS? In general the version of UIWebView in ION and the packaged app is one and the same and there shouldn't be any differences in observed behavior.
  2. With the above said ION installation on your iPhone might be messed up - try uninstall and reinstall.
  3. You can also open iTunes and delete the app files directly just to make sure.

Regards,
Steve
the Telerik team

Don't miss the Icenium May Release Keynote - sign up now!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
Gal
Top achievements
Rank 1
Answers by
Steve
Telerik team
Gal
Top achievements
Rank 1
Share this question
or