Trying to register the device into app