IOS: notification when an application is installed (but not yet running)

Is there a way to get a notification or otherwise run some code in the application when the application is installed but not yet running? I want to send a notification to our server when the application is installed. Please note that I am not going to do something the first time I launch the application, but rather immediately after installing it.

I guess this boils down to the desire to automatically launch the application in some way after installation, which is similar to what Apple will not allow. I hope I'm wrong.

Edit: Let me try to make this question a little silly / impossible. I am not trying to run the code without running the code. I would like to find out if there is a way to get the timestamp when the application loads, as opposed to when the user first starts it.

Thank!

+5
source share
5 answers

I doubt it is even technically possible. How do you want to run code without ... well, by running code?

+4
source

There is nothing you can do. An application cannot do anything until it is launched for the first time.

+2
source

, , , - , -, , ? , , .

+2

" , , "???

, , ()

+1

, . , , - , Google Analytics. iTunes Connect .

In addition, if you want to track the number of reinstallations, you can save the value in the user keychain (the information in the keychain is preserved even if your application is deleted) and request it at the first start, and if it exists, reinstall it.

+1
source

All Articles