Skip to main content
Solved

When is an anonymous App ID really changed?


Forum|alt.badge.img+3

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

Best answer by tina

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? 

View original
Did this post help you find an answer to your question?

2 replies

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • Answer
  • August 5, 2021

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? 


Forum|alt.badge.img+3
  • Author
  • Helper
  • 2 replies
  • August 5, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings