Solved

When is an anonymous App ID really changed?

  • 4 August 2021
  • 2 replies
  • 145 views

Badge +1

Hi

I want to implement a Free 3 day Trial period before purchasing.

I would like to use “FirstSeen” from purchaserInfo.

 

Documentation means that:

“ In the event that the user deletes and reinstalls the app, a new random App User ID will be generated.”

But when testing and uninstalling/reinstalling… i always got the same AppUserID and the FirstSeen doesnt change - that would be fine… but the docu says other things.

 

How is it actually?

 

Thanks

Walter

icon

Best answer by tina 5 August 2021, 02:24

View original

2 replies

Userlevel 3
Badge +8

Hey @Walter!

For the 3 day trial, we recommend utilizing the App Store Connect’s trials versus implementing this on your own. As for the app user ID, a new random app user ID should be generated after a reinstall if you’re configuring the Purchases SDK without the appUserID parameter. I tried reproducing this myself through our iOS sample app and was not able to reproduce your issue. Can you double check that you’re not hardcoding the app user ID within the app? When uninstalling the app are you selecting “Remove App” from the device and then rebuilding the app from Xcode to reinstall? 

Badge +1

Hi @tina !

Thanks for your answer.

I don’t want to use App Store Connect’s trials because the user hast to purchase first but won’t be billed and i think this is an inhibition threshold for them.

I tested many times and got the same App User ID but i use

Purchases.configure(withAPIKey: "<your_api_key>", appUserID: "<my_app_user_id>", userDefaults: UserDefaults(suiteName: "group.your.bundle.here"))

 

with appUserID = nil because i am in an extension.

Anyway - i implemented my trial with a KeyChain, so i don’t need the solution for my problem anymore.

Thanks

Walter

Reply