Android Question update app

Uniko Sistemi srl

Active Member
Licensed User
Hi everyone.
I would like to clarify because I don't understand.
I have an app that has a versioncode 9 that checks if there are updates available on the store, when it finds an update it goes to the store tab where the update button is present and so far everything is ok.
if I click on update, it is downloaded, but at 99% it says "cannot install", what am I doing wrong? the app I uploaded updated on the store has versioncode 10 . I would like to avoid uninstalling and installing each time because the user would lose the data....is there something I'm missing? if anyone can give me some ideas
Thank you
 
Solution
As far as I can tell, the app needs the same origin to be able to update. If you install an old version of your app using the IDE, you can't update to a later version from the store. Because they have different origins.

Sandman

Expert
Licensed User
Longtime User
The app already installed, is it installed from the store also, or is it installed via the B4A IDE?
 
Upvote 0

Uniko Sistemi srl

Active Member
Licensed User
The app already installed, is it installed from the store also, or is it installed via the B4A IDE?

could there be a difference if I boot from b4x and then check the update ?
the test i did is:
build release via b4x - look for update on store tab - download, but doesn't install
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
Yeah, that's most likely why it doesn't work for you. I had this exact situation on iPhone once, and the update in the store failed because the version installed was from B4i. I'd bet it's the same for you here, with B4A.
 
Upvote 0

Uniko Sistemi srl

Active Member
Licensed User
Yeah, that's most likely why it doesn't work for you. I had this exact situation on iPhone once, and the update in the store failed because the version installed was from B4i. I'd bet it's the same for you here, with B4A.
tell me if I understood correctly, so the app must have been downloaded the first time from the store to ensure that it is then updated with a new version on the store? A thousand thanks
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
As far as I can tell, the app needs the same origin to be able to update. If you install an old version of your app using the IDE, you can't update to a later version from the store. Because they have different origins.
 
Upvote 0
Solution

Uniko Sistemi srl

Active Member
Licensed User
As far as I can tell, the app needs the same origin to be able to update. If you install an old version of your app using the IDE, you can't update to a later version from the store. Because they have different origins.

I tested what you said and it is exactly as you say! thank you very much! Good day!
 
Upvote 0
Top