Add remote notifications mode to app entitlements
Use update device instead of register before log in
Hack to not use isTemporaryDeviceToken since it might not be updated in sync with deviceToken