How to register your app on a new device