Phonegap app cash?

  • 1
  • Problem
  • Updated 6 years ago
  • Solved
Today cashing some strange trouble with phonegap build. I uploaded version 1.0.1 of my app. I see in phonegap website last version 1.0.1. But when I download and install app I see that version 1.0.0 installed :(
https://build.phonegap.com/apps/11516...

App ID
1151673

Version
1.0.1

PhoneGap
3.6.3
Photo of Dmitry Alexeenko

Dmitry Alexeenko

  • 13 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
By the subject, I thought we were talking about money. I think you mean to say "cache".

Please give more details about the steps you are taking. Do you get any error messages along the way? Are you installing on Android or iOS? Can you show the part of your config.xml where you specify the version? Is your config.xml in your root directory along with your index.html file. Where are you seeing that version 1.0.0 is installed. (Whenever posting xml or code in this forum, put it within <code> </code> so that it displays properly.)
Photo of Dmitry Alexeenko

Dmitry Alexeenko

  • 13 Posts
  • 0 Reply Likes
Yeap we talking about cache :)

1) No errors
2) Android
3) config in root
4) config.xml 1.0.2

dashboard 1.0.2

after installing on my android device 1.0.1


So, I have 3 years phonegap experience and this is first time strange situation. I don't know it is cache in phonegap or in my phone.
Before installing new version of app, I reboot my phone, drop old versions. But when I install new version I see old number (1.0.1). In same time I see (1.0.2) in my dashboard and config.xml
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
How does the app determine what version it is? Are you using a plugin like: https://build.phonegap.com/plugins/940
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
The app doesn't. That's the app settings page in Android, I think.
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
Thanks Petra. Dmitry, how are you installing the app?

You could try deleting the app from PhoneGapBuild and creating a new app.
Photo of Dmitry Alexeenko

Dmitry Alexeenko

  • 13 Posts
  • 0 Reply Likes
Yeap, it is app settings page
Photo of Dmitry Alexeenko

Dmitry Alexeenko

  • 13 Posts
  • 0 Reply Likes
I use 2 ways:
1) Scan barcode and open link in local browser
2) Download apk file to pc and load to android device under dropbox

Result is same :(
Photo of Dmitry Alexeenko

Dmitry Alexeenko

  • 13 Posts
  • 0 Reply Likes
I noticed that this happens when the size of the application is changed slightly. For example, I change one line of code. The total file size same as in the old version. Build cached :(

If I add to the archive big picture, build size is increased to 1MB (for example). In this case, everything is normal.

Now I every time add or drop some big file to my build in order to prevent caching
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
You could try to determine if the problem is happening with PhoneGap Build or on your Android device by looking inside the .apk file that PhoneGapBuild is generating using the apktool. (https://code.google.com/p/android-apk...) This would allow you to look at the AndroidManifest.xml that PGB has generated.
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
I suppose it could also be some network configuration problem where the newly built version is not being downloaded for some reason. You might try adding an extra parameter to the url that downloads your app such as "?v=2".

https://build.phonegap.com/apps/1151673/download/android?v=2
Photo of Dmitry Alexeenko

Dmitry Alexeenko

  • 13 Posts
  • 0 Reply Likes
Yeap, John I think it is something with network
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Excellent troubleshooting step, John!

Thank you form the community :D