diff --git a/nymea-app/platformintegration/ios/platformhelperios.cpp b/nymea-app/platformintegration/ios/platformhelperios.cpp index ab1d5948..28ee7aa0 100644 --- a/nymea-app/platformintegration/ios/platformhelperios.cpp +++ b/nymea-app/platformintegration/ios/platformhelperios.cpp @@ -19,6 +19,10 @@ bool PlatformHelperIOS::hasPermissions() const QString PlatformHelperIOS::deviceSerial() const { + // There is no way on iOS to get to a persistent serial number of the device. + // We're not interested tracking users or the actual serials anyways but we want + // something that is persistent across app installations. So let's generate a UUID + // ourselves and store that in the keychain. QString deviceId = const_cast(this)->readKeyChainEntry("io.guh.nymea-app", "deviceId"); qDebug() << "read keychain value:" << deviceId; if (deviceId.isEmpty()) { @@ -31,7 +35,6 @@ QString PlatformHelperIOS::deviceSerial() const QString PlatformHelperIOS::deviceModel() const { - qDebug() << "SYSINFO:" << QSysInfo::productType() << QSysInfo::prettyProductName() << QSysInfo::productVersion(); return QSysInfo::prettyProductName(); } diff --git a/nymea-app/pushnotifications.cpp b/nymea-app/pushnotifications.cpp index ce1ea847..48e3d1f7 100644 --- a/nymea-app/pushnotifications.cpp +++ b/nymea-app/pushnotifications.cpp @@ -1,5 +1,7 @@ #include "pushnotifications.h" +#include + #if defined(Q_OS_ANDROID) #include #include