wintercounter
wintercounter

Reputation: 7488

PhoneGap app works only after first start

Im doing an app for Android. I'm using Genymotion for debug. Everythings working perfectly there. However, when i'm trying on my phone, the first run after install will go fine. After that i kill the app from the task manager and start the app again. Many of the JavaScripts are failing, some of working, but the weirdest thing is that even alert() not working anywhere. Anybody had the same problem before? Or any advices? Maybe it's a cache, phone, ROM related thing?

UPDATE

What i've tried so far:

<preference name="KeepRunning" value="false"/>

android:clearTaskOnLaunch="true"

Upvotes: 0

Views: 84

Answers (2)

wintercounter
wintercounter

Reputation: 7488

Couldn't find any real fix in hours. Tried the unaligned version of the APK and it's working fine, so it must be something with the ziptool, i'll try with other ones.

Upvotes: 0

jvliwanag
jvliwanag

Reputation: 1598

Enable the console plugin of phonegap and watch logcat logs for anything wrong that might have happened.

Upvotes: 1

Related Questions