Update default app automaticall from market - android

I have a lower version App installed in device using adb install command. I have a higher version of App in Android Market. I would make update the app in device automatically from Android Market. I saw the similar post below:
Prompt Android App User to Update App if current version <> market version
Is there a way to automatically update application on Android?
but Neither of those posts answer this question.
They mush have some solution. just like Goole Maps and Gmail does. I don't know how Google Maps does it?
someone suggest uses
http://code.google.com/p/android-market-api/
But it failed for me on code below: (android 3.2)
session.login("mymail#gmail.com",password);
Thank you in advance.

this is not really possible since your app wasn't first installed from the Android Market, so the market doesn't know about this "purchase", doesn't track updates so it won't prompt the user to update, or auto-update the app.
The only way to do it is to install the app from the market, keeping the "auto-update" checkbox on.

Related

Flutter: in app update without google/apple store?

My company (where I work) created an application for a company. I worked alone on this app and nobody else is into mobile developing + I am new in application developing. I use the firebase app distribution function to share the APK with the testers.
The problem that the testers are bored that they always get an email when there is a new version and have to install the new version through that.
Is it possbile to achieve some kind of in-app-update without using google/apple store? This app is for a company, that is not an option to put it on google/apple store.
The packages I found are using the store...
https://pub.dev/packages/new_version
https://pub.dev/packages/in_app_update
Sorry for the newbie question, thanks you in advance.
I'd suggest the following steps:
Enable Firebase Storage
Name your apks by version code
When you run your app, search the Firebase Storage for the max version code file
Compare running app's version with max
Download
Launch installer
Note: This is not in-app-update, but rather an automated process for downloading updates to a device. And launching installs may be restricted on Android 11 and higher, so look into that if necessary.

Is it possible to upgrade a device owner app through Google Play?

I've created a device owner app, which I install through a QR code when I factory reset my devices. Everything's fine until here.
Now I have a new version of the same device owner app, and I want to update the devices which have the previous version to this new version.
Is it possible to achieve this using Google Play?
I don't want to use custom methods like uploading the APK somewhere and downloading it with some Java code, because I want to centralize the releases in Google Play.
So far I have uploaded the new version (version code is 5, old one is 2) of the app to Google Play and tried to upgrade from there, but it does not work: in Google Play I just see the app as installed, and the "Disable" and "Open" button, but not the button to upgrade it.
Any thoughts? I've found some posts like the ones below, but they're 5 years old, maybe something has changed and this is not longer possible.
Install updates for a Device-Owner App
Install a GooglePlay located App from NFC
I haven't been able to find any specific information on updates with device owner apps. The documentation is extensive about how to create and install a device owner app, but not on how to upgrade it.
Thanks a lot in advance!
You didn't install it from play store , I THINK you can't update Device-Owner apps which were not installed from play store , except for the way you mentioned.

how to make the last version of my app is the only working version in android

I have uploaded my app on google play store. I need when I do an update in my app the old versions of the app doesn't work on user devices until they updated the app. For example when I make an update when the users that have old versions of the app opens it a dialog opens to them asking them to update the app to be able to use it , How can I do that?
You can't go and change old versions retrospectively - the code is already out there on devices.
If you want this feature in new versions of your app however, I would recommend using something like Firebase Remote Config. That will let you control the minimum version of your app on a server, so you could give the users a week to update, then change the config on the server, and the app will know to ask the user to update.

Users get "Authentication is required. You need to sign into your Google Acoount" error when trying to download my android app

My app uses AdMob. My app doesn't contain any inapp purchases. No device is excluded in developer console and devices tested had higher sdk version than minimum required. My app is optimized with proguard and then zipaligned. Users can install other apps without problems. Why are they getting this error? How can I solve it?
Also when trying to install it via browser on a PC? In this case, where does the error occur, on the pc or the mobile device?
Which app is it?
I think Google Play takes random amount of time even after app being published, before it becomes available for download. Same thing happened to other person I know. After few hours of app being published (not app being uploaded) his app could be downloaded. His app could be downloaded before mine even though mine app was uploaded before his.

Default app update

I have a lower version app installed as default app. I have a higher version of app in Google Play.
They have the same certificate. I would update the app in device automatically from Google Play. I saw the similar post below: Prompt Android App User to Update App if current version <> market version Is there a way to automatically update application on Android? but Neither of those posts answer this question. They mush have some solution. just like Goole Maps, Gmail,Pluse news and Adobe Flash player 11 do. I don't know how Google Play App can display it and how they get updated automatically? Can you help me?
Thank you in advance.
You cannot upgrade applications automatically...
There is an option in google play "Allow automatic updating". If user select this settings for your app, then it will updated automatically.
I believe for Google Maps, this settings might be turned on by default.

Categories

Resources