I'm building an android app that is gonna be used by many users. So I'd like to know how the app can be automatically updated for all user as long as I'll be updating new version. How the application can automatically search for updates.
Is there any tutorial link or explanation that can help in that way?
if your app will be used by many users you should publish it in Google Play Store using Google Play Console, using it you have the control of bug reports, installations and Crashes and ANR logs, the country of your user and more... But if you won't publish your app in Play Store you can follow some tutorials or add a text file on active URL where you compare the Application version with the Version wrote in the file, if the application version is oldest in another file write the link of the new version.
Related
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.
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.
I have 500k active users. My application has been probably hacked. How do I know that? My production versions are 3.x.y But I can see in Firebase statistics that 1% (about a few thousand) users use version 4.0.0. I have never released app with that version. Probably somebody just changed app version and I assume ad ids. He didn't even remove Firebase analytics so I can see that the hacked app is live. I use standard ProGuard obfuscation but as we can see it didn't help.
The question is how to find the place (site, market,..) from where hacked application is downloaded?
If you are fine to update your app, then I would first change my app to read getInstallerpackageName from PackageManager, and then record it via Firebase analytics.
If the result of this is com.android.vending it was installed from Google Play, otherwise it will be the program that installed your app. If this is another app store then great, you have found it.
If the result is something like a web browser then it is harder as the user got the app from a website. Then your best option is Google searching. The normally easiest way is include your app name and the word "APK". This tends to find most sites serving your app. You could even search for your app name, "APK" and "4.0.0" as many website list the version code on the page.
i have an existing native android app on the google play store. We have now developed the same app in xamarin and wish to go ahead with the xamarin one here on. I need to understand if it is possible to now put the xamarin apk on the store in place of native android one so the user receives the xamarin app as an update and not as a new app? I want to xamarin version to go as update to the user. Please guide me with the steps that will need to be taken to do so.
If you are able to keep the package name and signing key you are able to deploy your app as an update to the user. Don't forget to bump up the version number.
My android app is published in google play store.
I want to do,
User get notified when there is new version of app.
User must get notified when they are using an older version of app.
The problem I face is,
If the user turns off automatic check for update option in google play store, they no longer get notified by the default option.
If my user using the older version of my app, it will create problem for me in data management.(conflict problem etc.,)
So what i want is, the user opens my app, checks for the current version code of the app and compare with version code of the app that is in google play store.
I find it difficult to get the version code of the app that is in play store.
I tried following links to get the version code of the app on google play store but of not help.
SO question
https://code.google.com/p/android-market-api/
[How to allow users to check for the latest app version from inside the app?
please help..
How can i programmatically get the version code of the app that is on play store.
Or is there any way that by which I can manually trigger the default built-in event as handled by google play services?
why don't you save your latest version in a google document on google drive and from your application read that value?
Here is the api
Actually, solution that based on Google page html is not stable and need to be changed whenever Google update their layout. In addition, the version number from Google page is truly versionName but not versionCode.
For example: Regard to build.gradle file, versionCode is 5 and versionName is 5.1. For this case, Google store page will show us Current version is 5.1 but not 5.