user2717267
user2717267

Reputation: 290

How to get user information on app installation

Is there a way (if possible) to fetch some user info, such as users language or app version (to store in server), on app installation, before the app is launched or maybe on app launch but only once. I looked into NSUserDefaults but i don't think it will exactly serve what i want. I can get the user info i need in the app delegate - didFinishLaunchingWithOptions, but i want the info stored only once at app installation (time & date) and not every time user will launch the app. couldn't find info on google or SO that will help accomplishing exactly what i want...

any help will be very much appreciated.

thanks in advance

Upvotes: 0

Views: 149

Answers (1)

tilo
tilo

Reputation: 14169

There are many open source projects doing exactly this. Just take a look at one of these projects to get an impression on how to access this information. Just as an example: Countly

If you want to access this information only once, just set a BOOL in NSUserDefaults that indicates whether or not you already got it.

Upvotes: 1

Related Questions