iOS App Store shows iCloud button instead of Install button - ios

When users who previously had our iOS 6 app installed on their iPhone, go to the App Store to reinstall our app, they see an iCloud button instead of the INSTALL button.
When they push the iCloud button the App Store installs the version of our app they installed in the past, instead of the latest version. Immediately after the installation the iCloud button changes into an UPDATE button offering to update the app to the latest version.
How can we prevent this behaviour, because the user actually downloads our app twice?
Our app is for free, so there is no need to install a "previously purchased" version.
Also if the user presses the UPDATE button fast, things get screwed up. For some reason this leads to our app being unable to save data to the Documents folder.
This is new behaviour. Have never seen this in the past. Anyone got a clue? The name of our app is Rogerthat
Thanks

I think this issue could be caused if the version set in iTunes Connect and the version set in the info.plist don't match up. For example, we've seen this issue when the version in iTunes Connect was set to 1.01 and the version in the info.plist as 1.0.1

Related

Updated ios App from the Apple App Store, but my app is still showing the old version

I have a version 0.6.5 of my app installed on my Phone.
I release a 0.6.8 version of my app to the Apple App Store, pass the review and the status is changed to "Ready For Sale"
I go to the App Store, search for my app, I see the new updated is listed.
I press the "Update" button, and wait.
However after the update finished installing, I open the app and still the 0.6.5 version.
I go back to the App Store, and I see the "Open" button instead of the "Update" button.
I have to uninstall the app. Go back to the App Store, reinstall again, and now I have the 0.6.8 version.
This problem is affecting a lot of my users. I am not sure how to approach the problem. Does anyone have a solution for this? I will try to report this problem to Apple.
My App is built with react-native and I'm using react-native-code-push in case this is relevant.

Deleting an App from another app in iOS

I have an app live on app store. Due to some reasons i am about to push new app on app store, and want to uninstall old app from new app. Is there any way to uninstall/delete an iOS app from user's iPhone.
This is not possible, due to iOS not allowing people access to the file system. The only thing you can do, with an itms-services:// link, is prompt the user to download an app available somewhere for ad-hoc delivery.
Just add the current bundle identifier to the new app and submit as an update. It doesn't matter if it's the same project or a new one. As long as bundle identifier stays the same it will count as update.
This won't technically uninstall the old app, but it will look like it did.
Just remember that scheduled notifications and persisted files will remain as they were, you will have to implement some clean up logic to get rid of them.

TestFlight gives users null app after uninstalling

Some of our users are running into an issue in a beta app of ours. They're attempting to unisntall an app (iOS 9.1, iPad Air) and finding a null app left over after uninstall. From one of the reports:
I then tried deleting the app through GameCenter. The GameCenter app
asked me if I wanted to uninstall the app as well, and I said yes.
However, I noticed that the app was still present on the home screen,
so I deleted it there as well.
Now, TestFlight says “Open”, not “Install”, even though the game is
not present on the home screen.
It appears that the deleted app is now a null package on the phone, which doesn't show up on the home screen. They can't install the app again in TestFlight because TestFlight believes it's already installed.
From their more detailed report:
In Settings->General->Storage->Manage Storage, I found a 67.5 MB
“null” app. I deleted it, and it goes away - but if I go back into
the Manage Storage page, it reappears. I tried hard-resetting, but no
difference.
In iExplore, I can see that com.XXXXXXXX.XXXXXXX is present, but I
can’t interact with it.
In XCode, I see it on the list of installed apps (under
Window->Devices, with latest OSX and XCode). When I delete it, it
goes away and immediately returns. In the log, I see that the
uninstall is requested, and then this error: [MIContainer
allContainersForIdentifier:options:error:]: 348: No bundle container
found for identifier com.XXXXXXXX.XXXXXXX (this was the app ID) and
then a warning that no uninstall occurred.
I'm looking for feedback from other app developers who have run into this issue. How can users remove the app from device, and re-install from TestFlight?

TestFlight alert while testing update: You already have this app installed

I was trying to test update scenario from live App Store app build to RC using TestFlight, but TestFlight gives me alert "You already have this app installed. Do you want to replace..." (see below screenshot). After confirmation, all data from App Store version is gone.
Steps I do:
Install live app from the App Store
Login and do some operations to get data in the app and Keychain
Go to TestFlight iOS app
Tap "Install" button in TestFlight -> alert "You already have this app installed" appears
If I tap choose Install, new build is installed
Result:
The app's content including Shared Container (data shared with Extensions) and Keychain are completely wiped when I open the app again
Edit: The alert in TestFlight appears with any app (I have tried multiple different apps from different dev accounts). The actual data deletion happens only for some.
My question:
Is this expected behaviour from TestFlight or is it any issue with my app? I'm not aware of any changes between versions which could cause any issues.
I believe this was not happening before (the last time I tried was few weeks ago).
I couldn't find any documentation or release notes regarding TestFlight app behaviour or changes.
Did anyone experience the same issue? Or do you know any resources describing this behaviour?
Thanks for any answers!
After long research, trials and errors, creating radar and releasing update to App Store, I have an answer:
Alert is there always and does not have relation to losing data.
The alert with warning about possible lose of data is being displayed always for any app being installed from TestFlight over the Non TestFlight Build.
This was true for any of multiple apps I have tried.
identifierForVendor changes when overwriting app with TestFlight build.
When you have App Store version of the app installed and overwrite it with build from TestFlight, result of [[UIDevice currentDevice] identifierForVendor] changes
This is unexpected since it is not mentioned in the documentation (see below)
In my case unexpected change of identifierForVendor was causing "loose of data" which wasn't actual lose of data, but it is happening only for TestFlight builds which you cannot debug, so it was hard to find the issue.
Documentation of [[UIDevice currentDevice] identifierForVendor] says:
The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution.
as per best of my knowledge,
if you have installed application from App Store (suppose of version number 1.0) on your device, and lets say your are again downloading/installing same app with same version number 1.0 from TestFlight, you will get above message.
This is because you are trying to install app with same version and bundle id that already does exists on device.Offcourse you will lose data/settings of app, as its replacing your app not updating.I also gone through this scenario.
If you have the full version of an app installed on your device and you install the same Beta App, your app data may be corrupted or lost and may not be recoverable. You should back up your information before installing a Beta App.
http://www.apple.com/legal/internet-services/itunes/testflight/sren/terms.html
I don't know how this happens

Detect if app was fresh installed or updated

I need a way to detect if user install the app from fresh, or after update.
The catch here is that version 1 of my app is already on the App Store, so I cant rely on any user default flag.
I'm now working on version 2, and I want to detect on app launch, if version 1 was installed or not.
any ideas?
If you didn't make the provisions (app defaults etc), there is no other standard/default way of knowing if a previous version was installed .
However, you can still find a way to detect if previous version was installed based on whether in previous version you
created a folder/file in app documents/cache directory or
created an SQLite db or
sent the UUID to a a server or
any other code/feature which can be checked with an 'if exists' code on app launch
If you can't.. there is no other way.

Resources