Fix mobile app registration with unknown manufacturer or model

This commit is contained in:
Yegor Vialov 2020-06-02 21:54:54 +00:00
parent 6367d38524
commit e977054139

View File

@ -5,9 +5,9 @@ class MobileAppIntegrationManager {
static final _appRegistrationData = { static final _appRegistrationData = {
"device_name": "", "device_name": "",
"app_version": "$appVersion", "app_version": "$appVersion",
"manufacturer": DeviceInfoManager().manufacturer, "manufacturer": DeviceInfoManager().manufacturer ?? "unknown",
"model": DeviceInfoManager().model, "model": DeviceInfoManager().model ?? "unknown",
"os_version": DeviceInfoManager().osVersion, "os_version": DeviceInfoManager().osVersion ?? "0",
"app_data": { "app_data": {
"push_token": "", "push_token": "",
"push_url": "https://us-central1-ha-client-c73c4.cloudfunctions.net/pushNotifyV3" "push_url": "https://us-central1-ha-client-c73c4.cloudfunctions.net/pushNotifyV3"