Works in simulator, not on Ion

3 posts, 1 answers
  1. Dylan
    Dylan avatar
    2 posts
    Member since:
    Feb 2013

    Posted 08 Mar 2013 Link to this post

    Hi,

    I’ve got a very basic app which replicates the example at http://openlayers.org/dev/examples/mobile-jq.html#mappage and should display a simple map of the world.

    It works fine in the simulator, but as soon as I load it into Ion it has a blank screen where the map should be. A colleague has tried running it on his Android tablet and it works fine there, but with Ion on the iPhone I’m having no luck at all.

    I’ve tried adding in some debugging to try and figure out what’s happening and it looks like the init() function (which creates the map) enters correctly, but something’s happening in there as it doesn’t appear to exit correctly (the debug test I’ve written at the end of the function never gets fired). Now I’m at a loss as I have no idea how to find out what’s going wrong—as I say it works in the simulator, where I’ve got access to the console, so I expected it to work fine on the phone too.

    Any ideas what I could do to try and find out where my code is failing within Ion?

    Thanks,

  2. Answer
    Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 11 Mar 2013 Link to this post

    Hi Dylan,

    It would be a wild guess but can you check whether or not you are referencing any script/CSS file with correct casing in the path name? iOS file system is case sensitive and when you include any file in your HTML it should be with the exact same casing as it is on the file system.

     

    Hope this helps,
    Stefan Dobrev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Dylan
    Dylan avatar
    2 posts
    Member since:
    Feb 2013

    Posted 11 Mar 2013 Link to this post

    Brilliant—that was the cause of the problem. I should have known better though as it’s something I’d encountered before! Oops :) Thanks.
Back to Top