Hi looking into Virtual Currency for tokens in my game. Currently on ios I save tokens to icloud so they transfer between devices but are not tied to a user account in my game. I also save them on the keychain so they survive app delete / install. On android I save the count in userData but that doesn’t survive app delete and that’s not great.
I haven’t associated tokens with user accounts because creating an account isn’t mandatory.. some people simply like to play the computer opponent and not online.. so they don’t need an account.
So wondered if virtual currency might be a good option as rev cat creates an anon id. But it’s complicated.
For example.. assume someone installs the app the the first time, gets an AnonID and buys tokens without a userid in my app.. then they create a new account in my game and I tell RevCat about that userID. It does look like that in-game user id gets assigned get an alias to the orig anonID and the tokens are still there. Great
But if I install the app, get an AnonID , buy tokens and then login as an existing user the tokens I had bought aren’t transfered over to the new login and added to any that are there. I can see times you’d want this and times you wouldn’t .
Also right now if I a user logs out of my app I also log out of rev cat and then get a new anonID which complicates it further. I wonder if even though someone logs out of my app I don’t want to also log out of revcat but keep it associated with the same account. .. it’s tricky. Maybe if they log into another account then I switch the id.. Will have to do some testing.. but even explaining this and all the edge cases (which I’m sure there are more) is tricky.
I think the only way to do this is to require a user login to my app to use it.. but I fear that will dissuade people from trying my game as many people like to try an app for a while before entering personal info.
Curious if anyone else has pointers on their flow?
D