Merge PR #561: Fix refreshing the push token
This commit is contained in:
commit
55b9483db4
@ -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/
|
||||
|
||||
@ -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'));
|
||||
}
|
||||
|
||||
|
||||
@ -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 \
|
||||
|
||||
@ -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.")
|
||||
}
|
||||
|
||||
@ -41,6 +41,7 @@ import Nymea 1.0
|
||||
|
||||
ItemDelegate {
|
||||
id: root
|
||||
implicitHeight: Style.smallDelegateHeight
|
||||
|
||||
property string subText
|
||||
property bool progressive: true
|
||||
|
||||
@ -159,7 +159,7 @@ MainPageTile {
|
||||
}
|
||||
sourceComponent: {
|
||||
if (!root.iface) {
|
||||
return ""
|
||||
return null
|
||||
}
|
||||
|
||||
switch (iface.name) {
|
||||
|
||||
Reference in New Issue
Block a user