Jayanth Venkataraman
Posts: 0
Joined: Mon Dec 31, 2012 12:59 am

Problem with exporting to xcode and running in ios simulator

I have exported my successfully running app with custom javascript to XCode. The exporting works fine but when I build and run it, there are 2 issues

  1. My home page has a button which when clicked should take you to the next page using Tiggr.navigateTo(). In the ios simulator, the home page loads fine but when i click the button nothing happens. When i loaded the html in chrome did the same action this is what i got in the javascript console

    XMLHttpRequest cannot load file:///Users/jvenkata/Downloads/Cric_Score%204/iOSTiggrTemplate/PhoneGapTemplate/Resources/www/project/enterTeamDetails.html. Origin null is not allowed by Access-Control-Allow-Origin.

  2. When i tried to load the second page in chrome I got the following javascript issue

    Uncaught TypeError: Cannot call method 'getItem' of undefined.

    This 'getItem' is used as part of Tiggr.applicationStorage.getItem ();

    Can anyone please help me.

    Thanks,
    Jayanth.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem with exporting to xcode and running in ios simulator

Hello,
We are looking for what caused it.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem with exporting to xcode and running in ios simulator

Hello,

Navigation to page is working properly online but won't work locally because AJAX requests are forbidden by browser. To make it work you can change "Use full screen refresh" in properties of "Navigate To" action.

Also, you use Tiggr.applicationStorage for storing variables but this works on browser only for now. You can use localStorage instead of Tiggr.applicationStorage to make it work on device.

Return to “Issues”