iOS Cache on live app


#1

I have an application in the app store.

So when the user updates the app, some of the changes are not getting reflected (images are not the case, some functionalities as well), unless he uninstalls the app and reinstalls it.

Can anyone tell me why it is so? Also is there a way to clear all the cache when the app is updated ( to simulate an uninstall)

Please help guys, it’s an urgent issue that needs to be fixed for me. I looked a lot, but can’t seem to find a solution anywhere.

Thank you.


#2

Hi

Consider issuing a support ticket. Especially if you are a paying customer (although not restricted)

This will give you acces to the specialists, not the voluntary community

Rhdz

Tom


#3

What exactly does that mean?

All users or some users?
What platform, what OS version, what devices?
What is the old version number, what the new one? Build number?

Do you output the native app version somewhere in the app?
Are you sure the app was successfully updated?

Are you using Ionic Deploy or a similar service (Phonegap Codesync, Microsoft CodePush, …)?

What is your ionic info output?

PS: Calling out random people in your initial post is impolite. I removed that from your post. Don’t do that again please.


#4

@Sujan12 First of all, sorry if I was being impolite. Didn’t mean to.

Problem

say there are 2 views. cached ones.
when the user moves from one view to other there is an ionic loading in the app, in version 1.3.6.
In the next release, I removed the ionic loading ( version 1.3.7).

But for the users who updated from 1.3.6 to 1.3.7, they are still seeing the ionic loading.

I suppose there is some caching going on. Could you please suggest a solution.

All users or some users?
All users who updated are facing this issue. But not the ones who uninstalled and re installed the app.

What platform, what OS version, what devices?
Its on iOS, the devices we check were iOS 11, iPhone 8 plus and 7 plus, also a 6s.

What is the old version number, what the new one? Build number?
old version number - 1.3.6
new version number - 1.3.7
Build number - 1.0.2

Do you output the native app version somewhere in the app?
sorry, not sure what this means, but I update the version number in config.xml only.

Are you sure the app was successfully updated?
Yes

Are you using Ionic Deploy or a similar service (Phonegap Codesync, Microsoft CodePush, …)?
I am using FCM push and Google Analytics

What is your ionic info output?

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.18.0
ionic (Ionic CLI) : 3.18.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

Cordova Platforms : android 6.3.0 ios 4.5.3
Ionic Framework   : ionic1 1.3.2

System:

ios-deploy : 1.9.2 
ios-sim    : 5.0.13 
Node       : v6.9.4
npm        : 3.10.10 
OS         : macOS Sierra
Xcode      : Xcode 9.1 Build version 9B55 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

#5

Does that build number correspond with the old or with the new app version?

Do you output that version number in the app somewhere?

How do you know?

Was the app running when the user updated it?
Does restarting the app (really close it first of course) fix the issue?
Does a restart of the device fix the issue?

Reports of similar problems pop up from time to time, as far as I know we here in the forum could never debug it to find a root cause.


#6

@Sujan12
How do you know?
I am the one who updated it in the app store via itunes connect.

Was the app running when the user updated it?
Yes.

Does restarting the app (really close it first of course) fix the issue?
No.

Does a restart of the device fix the issue?
No.

Reports of similar problems pop up from time to time, as far as I know, we here in the forum could never debug it to find a root cause.
Yes, I understand that debugging such a problem is a lost cause. Still is there any way to hard clear the cache of an app during app launch or something.


#7

This is not what I asked. You told me that you uploaded a new version to iTunes. I asked if the app was 100% successfully updated on the user device.

What cache? There is no cache of app content. Updating an app normally replaces the app content completely.


#8

This is not what I asked. You told me that you uploaded a new version to iTunes. I asked if the app was 100% successfully updated on the user device.

Yes I guess so, if not, the uninstall and reinstall wont work right.

What cache? There is no cache of app content. Updating an app normally replaces the app content completely.

Strange. I have no luck with this. Thank you for your effort though.


#9

No. Uninstalling makes sure that a completely new version is downloaded and installed. Updating apps on iOS only downloads a diff that is then applied. Things can go wrong there.

Check for the version number with this: https://apple.stackexchange.com/questions/97010/check-the-version-of-an-app-installed-on-ipad/97011#97011


#10

I was having this issue, but worse. My app sometimes loaded the “The world is your oyster” initial page. What solved it for me was:

I made a completely new project, then I imported only the src folder (didn’t import config.xml or package.json) from my old project and re-installed everything manually.

The answer Ionic support gave me:

  1. Update ionic-angular
  2. Run ionic doctor check
  3. Delete the app’s node_modules/​ directory
  4. Delete the app’s package-lock.json​ file
  5. Run npm install​ (which will regenerate what you deleted above)
  6. Run npm run build​

#11

Thank you @Sujan12, the version seems to be updated for me and @mateuspetter, I will try the methods that you suggested. Anyways I cant check this issue until the next release. Hoping this will help me.

Thanks again. I am going to close this now.