requirejs wont load scripts on icenium ion ios

6 posts, 0 answers
  1. Gal
    Gal avatar
    24 posts
    Member since:
    Mar 2013

    Posted 20 May 2013 Link to this post

    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>



  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 May 2013 Link to this post

    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.
  3. Gal
    Gal avatar
    24 posts
    Member since:
    Mar 2013

    Posted 20 May 2013 Link to this post

    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/
  4. Gal
    Gal avatar
    24 posts
    Member since:
    Mar 2013

    Posted 20 May 2013 Link to this post

    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.
  5. Gal
    Gal avatar
    24 posts
    Member since:
    Mar 2013

    Posted 20 May 2013 Link to this post

    Just tried this on a packaged ios app, works fine there too. it seems that only on icenium ion the app doesn't work.

  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 21 May 2013 Link to this post

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