Demo of a stable user ID that persists during uninstalls and device changes using RevenueCat and iCloud. That’s how I don’t need to authenticate the user but can still identify them in RevenueCat.
@codykerns could you check my PR ? Currently the original code has bug and it doesn't work. Someone else also reported the issue here: https://github.com/codykerns/S...
@xmarioapps Hey Mario, there is an even easier way to do this now. Look at StoreKit's appTransactionID. It is backdeployed to iOS 16, so you should be good to use it (provided your apps are distributed through the app store)
@louzell_ Ohh haven't tried it yet. Thanks!
@xmarioapps That's cool! How to make that id stable? RC generates a new allias when app uninstalls
@stacy_siz I shared the plugin here, the original one has bug so I fixed it https://github.com/mariosaputr...
@xmarioapps Keychain?
@AjmalSalim No, iCloud key value
@xmarioapps cmmiw, please. this approach is in order to automate the "Restore" process, right? so that, if the user uninstall-install the app or install the app in other device with the same AppleID, they don't need to "Restore" their purchase.
@ivanpnn That is one of example. Basically you can do anything you might do with RC. The problem is default RC user ID is not persistence.
@xmarioapps Nice! How ?
@xmarioapps So it’s basically NSUbiquitousKeyValueStore… Or something more to it?
@xmarioapps This is great, I’ve been thinking about removing explicit auth from my app entirely as well, my main concern was how I’d ensure consistency w RC
@xmarioapps We've just been using RevenueCat for our app and it SEEMS to be persisting across uninstalls without extra setup, am I missing something?
@xmarioapps i built something similar using RevenueCat and iCloud in my Kelo app.
@xmarioapps It's not against TOS?
@xmarioapps but we need the same apple-id in both devices , right ?
@xmarioapps That’s brilliant!
@xmarioapps The reason there is no API for this is because of user privacy. This is against Apple's guidelines.
@xmarioapps This is cool. So it saves in iCloud storage, and delete the app doesn't delete the storage from iCloud basically?
@xmarioapps Cool! How secure the solution is?
@xmarioapps why not use the appTransactionID?
@xmarioapps Can do this wirh the keychain too for this
@xmarioapps We use same approach, as our app has no auth so far and we use revcatid as main identifier
@xmarioapps you can use supabase anonymous auth and you can conntect your supabase id to revenucat user
@xmarioapps This is the way
@xmarioapps Just use keychain it will persist that key even if you uninstall the app.
