Home > Mobile >  Android app before installation code access parameters
Android app before installation code access parameters

Time:10-03

Requirements: are you using A browser and qr code, containing A apk download address and an A parameter information, you finished cleaning the installed the apk, app and get the parameters when it first started in server,

After main purpose: let users to install the apk for this parameter, this parameter is a reference information, as long as the implementation for this parameter, no matter what method can, the above is only part of the background makes me to realize a way,

At present is to first implement the browser's first, sweep before the code you have is not installed this app working a giant candy, need to finish it on time, seek help from a great god, thank you!!!!! Thank you very much!!!!!

CodePudding user response:

Why no one ah - -

CodePudding user response:

Reason you a demand can't realize it, the browser isn't what you development, you need to get in through the browser to download the apk to the browser, the data from this don't work, unless you to develop a browser (or cow nose in your company, can be most browser developers to fix the world, let them according to your requirements processing),

Generally need to distinguish between recommendations are based on the download link to download channels, (qr code to generate a download link, the user request IP request record, the same IP download only remember once many times to download, users have installed as to what you say, go to download when you scan the background to distinguish, can also be achieved by your app, the app in the app update the radio monitoring, if it is updated, then elevate the native IP to the server, for server to handle the IP download, update the task is not a valid download, download delete) from the effective general idea as above

CodePudding user response:

You use system of browser code you cannot get access to the information, and users with what browser sweep your code that are not sure, I think this feature of android implementation effort, the less direct share links (take encryption to share with people in the back of the id (for safety), and then directly let him register, download the app registration again let him; Or just scan qr code out an invitation code, then download the enter time let him enter the invitation code is ok,

CodePudding user response:

You can talk with you phone all browsers on the market company cooperation let them for you to do a special interface, estimates of money in place can be achieved, the simplest is acquired all browser formula, and then add myself,

CodePudding user response:

Sweep the yard when put the information in the mobile phone on the clipboard of
After the installation is successful to obtain the clipboard data
Like taobao

CodePudding user response:

You can use the APP at this demand personalized installation, this is made of openinstall, sweep in the APP install code download available after the completion of their defined parameters, then can carry out operation processing, as well as for channel statistics,

CodePudding user response:

First of all, you need a background automatic packaging apk
Next, open the connection, the background for parameter, the parameter (reference information) packaged into the apk, generate a new apk
Finally, the new apk download, after open the apk will reference information to the back-end
Disadvantages: the backend needs to generate multiple apk that occupies a space

CodePudding user response:

Change the ideas will be simple,
Scanning don't directly download the apk, but to enter a link to the download page, the link with invitation code, and now a lot of sweeping codes are not allowed to download software, need to open in a browser,

CodePudding user response:

6th floor said good, solve my needs,

CodePudding user response:

Can you solve it later this problem I think also pretty heavy I could not be achieved

CodePudding user response:

Indeed seem only openinstall can do it, is actually carry parameter installation

CodePudding user response:

Open the CSDN today a look, and find new tip to the nest of grass, this post is just shortly into the line of original question, at the beginning has been solved, then just forget this post, thank you again for the zeal of the above brother,

references to the tenth floor ChessLuo response:
can you solve it later this problem I think is quite laborious also I am unable to achieve

When it is need the background to cooperate, after obtaining I packaged good APK background, you can into my APK writing contents, such as writing a xx. Json file,
Then the json file, the back-end can be configured according to the demand of different parameters, such as what to do on the offline sources of promotion also can do it, so you can read when it enters the APP to the json information so as to get to different parameters,

About writing where the APK, we put the APK after decompression can see a meta-inf directory, just put the things written here, to run the APP is not much, as long as you don't mind more APK volume,
How to read this catalogue? This requires you to search, I lost that project don't know where go to, so I can't give you the code, anyway, is there any way to get to the,

Dig the grave at that time, had been dug a straightforward, aaah ha ha ha ha ~ ~ ~ ~

CodePudding user response:

How to write inside the APK? According to a brother, you can use the Python script writing,, in fact, now there is a search on the net, don't have to rely on to do what the background, the ability to do the minimum requirement is, never tried not did not try to don't literally said no, (actually I'm not going to )

CodePudding user response:

The qr code is the background after upload the APK treated according to qr code, so it is not necessarily within the parameters of the download link for transmission, well, that is, cut die!

CodePudding user response:

Although for a long time, but is actually have a better and more simple solution:
The qr code is a h5 web page, when users open the web page for current device id (not necessarily device id, only can identify the device to go) uploaded to the server (such as: inviter XXX, equipment idabcde), and then download the app users to install, open the app in the registration for the first time the device id to the background, the background which belongs to the inviter

CodePudding user response:

Still use Shared links, and then use openinstall acquisition parameters
  • Related