mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
update unifiedpush
This commit is contained in:
parent
6638f89d18
commit
ccd3dc730a
@ -85,7 +85,7 @@ dependencies {
|
|||||||
androidTestImplementation 'androidx.test:runner:1.1.1'
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||||
implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher
|
implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher
|
||||||
implementation 'com.github.UnifiedPush:android-connector:1.1.0' // needed for unifiedpush
|
implementation 'com.github.UnifiedPush:android-connector:1.2.0' // needed for unifiedpush
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file("google-services.json").exists()){
|
if(file("google-services.json").exists()){
|
||||||
|
@ -313,19 +313,7 @@ class BackgroundPush {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> setupUp() async {
|
Future<void> setupUp() async {
|
||||||
if (!(await store.getItemBool(SettingKeys.unifiedPushRegistered, false))) {
|
|
||||||
Logs().i('[Push] UnifiedPush not registered, attempting to do so...');
|
|
||||||
await UnifiedPush.registerAppWithDialog();
|
await UnifiedPush.registerAppWithDialog();
|
||||||
} else {
|
|
||||||
// make sure the endpoint is up-to-date etc.
|
|
||||||
await _newUpEndpoint(
|
|
||||||
await store.getItem(SettingKeys.unifiedPushEndpoint));
|
|
||||||
}
|
|
||||||
|
|
||||||
// re-register the app without a dialog. This should be safe,
|
|
||||||
// and allows recovering from app deletion in gotify, for instance
|
|
||||||
Logs().i('[Push] UnifiedPush registration found, re-registering');
|
|
||||||
await UnifiedPush.registerApp();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _onFcmMessage(Map<dynamic, dynamic> message) async {
|
Future<void> _onFcmMessage(Map<dynamic, dynamic> message) async {
|
||||||
|
@ -1170,7 +1170,7 @@ packages:
|
|||||||
name: unifiedpush
|
name: unifiedpush
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.2"
|
version: "1.0.6"
|
||||||
universal_html:
|
universal_html:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
Loading…
Reference in New Issue
Block a user