Fix refreshing the push token

This commit is contained in:
Michael Zanetti 2021-03-16 23:59:29 +01:00
parent a9c394b577
commit 763445fe9f
6 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,7 @@ QT += core androidextras
QT += network qml quick quickcontrols2 svg websockets bluetooth charts nfc
include(../config.pri)
include(../android_openssl/openssl.pri)
include(../3rdParty/android/android_openssl/openssl.pri)
INCLUDEPATH += $$top_srcdir/libnymea-app/

View File

@ -229,6 +229,8 @@ void AppLogController::updateFilters()
loggingRules << QString("%1.info=%2").arg(category).arg(level >= LogLevelInfo ? "true" : "false");
loggingRules << QString("%1.warn=%2").arg(category).arg(level >= LogLevelWarning ? "true" : "false");
}
loggingRules << "qt.qml.connections.warning=false";
QLoggingCategory::setFilterRules(loggingRules.join('\n'));
}

View File

@ -13,6 +13,7 @@ win32:CXX_FLAGS += /w
linux:!android:!nozeroconf:LIBS += -lavahi-client -lavahi-common
PRE_TARGETDEPS += ../libnymea-app
linux:!android:PRE_TARGETDEPS += $$top_builddir/libnymea-app/libnymea-app.a
HEADERS += \
mainmenumodel.h \
@ -61,6 +62,7 @@ android {
# https://bugreports.qt.io/browse/QTBUG-83165
LIBS += -L$${top_builddir}/libnymea-app/$${ANDROID_TARGET_ARCH}
PRE_TARGETDEPS += $$top_builddir/libnymea-app/$${ANDROID_TARGET_ARCH}/libnymea-app.a
DISTFILES += \
$$ANDROID_PACKAGE_SOURCE_DIR/AndroidManifest.xml \

View File

@ -318,7 +318,7 @@ Item {
{ "paramTypeId": tokenParam.paramTypeId, "value": PushNotifications.coreToken }
];
print("Reconfiguring PushNotifications for", thing.name)
engine.thingManager.reconfigureDevice(thing.id, params);
engine.thingManager.reconfigureThing(thing.id, params);
} else {
print("Push notifications don't need to be updated. Token is valid.")
}

View File

@ -41,6 +41,7 @@ import Nymea 1.0
ItemDelegate {
id: root
implicitHeight: Style.smallDelegateHeight
property string subText
property bool progressive: true

View File

@ -159,7 +159,7 @@ MainPageTile {
}
sourceComponent: {
if (!root.iface) {
return ""
return null
}
switch (iface.name) {