Upvote 2

variables don't pass between screens on ipad device

Solved Victor Conesa 12 years ago

I'm using phonegap to host the HTML output from a JIM project, and running it on an ipad. For the most part it works great. However when run on an ipad it appears that variables are not global between screens (a change to variable made on one screen does not persist to the next). I have a simple test project you can see, but it requires you to build the app with phonegap/xcode and run in ipad simulator or device. Any ideas?


thanks

Best Answer
photo

Hi everyone! In Justinmind version 8.7, we introduced the ability to export your prototype to PhoneGap, meaning that you can now export your Justinmind prototypes to real, working applications. Check it out here.

Replies (12)
photo
1

WOW. That's great. Can you send us something that we can try here in justinmind (we have ipad simulators and real ipads) so we can debug what could be going on? Please send it to us.

photo
1

We tested it in a real ipad and a real iphone at it works. We tested it in an ipad simulator and it doesn't work there so maybe the problem is with the ipad simulator. Have you tried your example in a real ipad?

photo
1

I've tried it in both the simulator and a real ipad. it fails in both cases. Note, I am doing it with comments turned off for usability and performance reasons. Per your suggestion in email, doing it with comments turned on does workaround this problem, but in my real app having comments turned on causes screen flashing when going between pages and interaction with links on the page is much worse. (i.e. on-click events on buttons in pop-up dynamic panels don't execute the event 90% of the time). Finding a fix/workaround that doesn't require comments turned on would be super helpful. thanks.

photo
1

I think the problem is we are trying it in Usernote and you are using the exported html+phonegap. Just to check it, could you publish your prototype in an Usernote account of yours, then select 'create test' and check that link with an ipad please?

photo
1

Yes, usernote works as expected on the ipad.

photo
1

Ok, then it might be PhoneGap.

photo
1

The Justinmind/PhoneGap solution for quickly creating and deploying demo apps to real devices is super compelling, but is largely blocked by this global variable persistence issue. I'd imagine this would be an awesome Blog Post if this were fixed. (I'd help you write it!) Anything you can do to continue to investigate and make this work is much appreciated. Obviously I'd like to stay away from a solution that requires me to write custom code. (the whole point of using Justinmind :) )

photo
1

Count on it. We will take a look at it for sure. I don't think it is that complicated.

photo
1

Great. Please let me know how it goes.

photo
1

I'm having the exact same issue with variables not being global on iPad. I have comments turned off too and have not tested with them on. I'm serving mine from my own IIS webserver and I've tried serving live and running offline using appcache to download the sim to the iPad for offline viewing. It works in chrome and safari on my computer.


Is there a resolution coming or work around for this?

photo
1

There is a resolution on the way. You'll have that fixed in three weeks. We apologize for the inconveniences.

photo
1

Hi everyone! In Justinmind version 8.7, we introduced the ability to export your prototype to PhoneGap, meaning that you can now export your Justinmind prototypes to real, working applications. Check it out here.

Leave a Comment
 
Attach a file