Question

I want to give the user some point when they first install the app (but I want it to device specific). It means if he uninstalls and re-installs he will not get that point again. I have found below methods:

  1. Keep device previous data in shared preferences which will be deleted if I release an updates of the app

  2. Store previous data in sql database but if user clears data from settings it will be lost

  3. Create a file in SDcard store data, saving that file in a folder with .foldername and check the file value, problem is that the user can delete it

  4. Every time the user opens the app it sends device id to server, server will check it is previously stored or not before giving point. Problem is that server maintenance should be avoided.

Other than these 3 methods is there any other method? Can you suggest me any other way, or can you please tell me if there is no other method which would be better for 3 and 4?

Was it helpful?

Solution

Variation of 4. using Google's backup servers, however the user can delete the data through his system settings.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top