If i have the production version already installed on my iPhone and then try to install a newer beta version from Test Flight will the app cache get cleared. This is not happening for me.
Cache not getting cleared upon installing app via TestFlight when i already have Production verison installed.
Not sure what you mean by "cache" but you are correct - installing another version of the same app (same bundle ID) whether by the App Store or TestFlight does preserve the application data. (NSUserDefaults, Documents directory, Application Support directory etc.)
By cache i meant html5 localstorage in browser. I am using that to know whether user has logged out, using a flag. The app has been developed using cordova + angular + ionic and i am using angular in-built service $localstorage. When the app is upgraded to a newer version shouldn't the previous version get uninstalled and therefore the cache get removed.
When i install the newer beta version of the Android app over the pre-existing Production app in my android phone the cache seems to get cleared off. That's why i was not sure why the same should not happen in the iPhone version.