Phonegap and webstorage problem

Get help using Construct 2

Post » Sun Apr 28, 2013 10:49 am

Hi,
In compiling in phonegap cloud the webstorage works perfectly, but when I build the app on computer with eclipse and phonegap it saves values only while the app is running, but when I exit and come back the values are not saved.

Is there something I need to add to local construct2 phonegap export code to get it working or am I missing something?

and I build phonegap locally because at the moment it seems the only way to add mobiads, since ludei ads work only for premium members and phonegap cloud doesn't have that option yet.

B
7
S
1
G
3
Posts: 27
Reputation: 2,169

Post » Sun Apr 28, 2013 11:02 am

I had a problem in eclipse and phonegap when adding admob. The ad call was conflicting with loading up the stored variables on my Ninja Fart Hero game for android. I needed to add a delay of 8 seconds in eclipse before the admob module booted. That way the storage had time to load in first. Probably a similar thing happening with your ad call.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Sun Apr 28, 2013 11:35 am

Hi,
I'll look into that, but right now, it doesn't save webstorage even without admob.

Is there some setting on local build that I should change? config.xml or?

Ninja Fart Hero is great game by the way

B
7
S
1
G
3
Posts: 27
Reputation: 2,169

Post » Sun Apr 28, 2013 12:29 pm

Just tested on another phone, it works on android 2.3, but on latest android, when I exit, the webstorage doesn't save?
B
7
S
1
G
3
Posts: 27
Reputation: 2,169

Post » Mon Apr 29, 2013 9:09 pm

Problem was phonegap version 2.6, it has a bug that breaks persistent saving, it should be fixed on version 2.7. So better use 2.5 until then.
B
7
S
1
G
3
Posts: 27
Reputation: 2,169


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 25 guests