I'm getting error 1700, "user <id> already registered with the device" when calling StoreDeviceToken(). I understand why this error is being generated -- the user has already been registered for that device. But my question is whether or not there is an API that I can use to find out at runtime whether the user's device has already been registered so as to avoid this error, or if calling StoreDeviceToken() is basically just the way to do this, and I should just ignore the error?
What is the best practice for registering device tokens with a user account? Do I just call StoreDeviceToken() no matter what, or should I query some other API first to determine if StoreDeviceToken() needs to be called?