fix build

This commit is contained in:
Michael Zanetti 2018-09-19 17:57:18 +02:00
parent 45ddbd3320
commit 9a96ff6f02
2 changed files with 6 additions and 1 deletions

View File

@ -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<PlatformHelperIOS*>(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();
}

View File

@ -1,5 +1,7 @@
#include "pushnotifications.h"
#include <QDebug>
#if defined(Q_OS_ANDROID)
#include <QtAndroid>
#include <QtAndroidExtras>