Burke Holland
Burke Holland

Reputation: 2337

Clear PhoneGap Cache

When I deploy my PhoneGap application to my iPad, it doesn't show the most recent version. I'm guessing this is because the WebView is caching stuff. I can't figure out how to clear it.

So far I have..

Any other ideas?

Upvotes: 3

Views: 5102

Answers (4)

Jon Paul Berti
Jon Paul Berti

Reputation: 73

I tried the clean project suggestion above and it does not work.
You need to rebuild the app from the command line using cordova.

cordova build ios

This works every time.

Upvotes: 2

CashLee李秉骏
CashLee李秉骏

Reputation: 1048

Sometimes I would edit the code in my html or js files.

If you add a line by Enter Key in the codes and save it.Then you run it,all the new codes are running on your app.

xcode cache is quite heavy.

Upvotes: 0

CAMOBAP
CAMOBAP

Reputation: 5657

Phone gaps localStore may use this files (on real device)

find / -type f -name '*appdata.db'
find / -type f -name 'file__0'
find / -type f -name 'Databases.db'
find / -type f -name '*localstorage'

Upvotes: 0

sciritai
sciritai

Reputation: 3758

You need to clean the project in Xcode, cmd+shift+k. Xcode caches html files heavily, in this case it's most likely the index.html file. Instill the clean project step in your mind as you need to do it every time you deploy to device.

Upvotes: 4

Related Questions