Answer the question
In order to leave comments, you need to log in
How to give the user an APK file with individual data?
Here's what I would like to implement:
1) The user receives an individual link.
2) Goes to the site through it and downloads a unique apk file
3) After installing this received application, a WebView opens, in which a unique URL for this user is loaded.
Tell me, does anyone have any ideas?
Answer the question
In order to leave comments, you need to log in
Well, generate a resource with the desired url, extract the url from it in the application code. When requesting an apk, run the build as a background and, after completion, copy the file to the directory from where the user can download it, and show the link to the user for downloading.
PS You can not run it in the background, it's just not known how long the build can last.
@vollossy
answered your implementation , but as he noted, building an individual APK file can take a long time for a more or less serious project. I would like to offer an alternative.
1. The APK file is the same.
2. At the first start, the application requests an individual code. There is a request to the server with the transfer of this code. Your unique URL is stored on the server for this code , which the server returns to the application.
3. The application receives the URL and saves it. On all subsequent launches, the application already uses the received URL.
apk is a zip, so you can quickly put a bunch of additional files there, and if android-sdk has the ability to access these files, then this is how you can do it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question