From 8fb7ea0fe8a09fec7e9ee9cbc83cc3fbbef8df99 Mon Sep 17 00:00:00 2001 From: Liuyf Date: Fri, 18 Apr 2025 14:41:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20jpush=E9=80=BB=E8=BE=91=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E9=80=82=E5=BA=94=E5=BA=94=E7=94=A8=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E5=90=88=E8=A7=84=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/kotlin/com/skychip/lock/App.kt | 2 ++ lib/tools/push/xs_jPhush.dart | 1 + 2 files changed, 3 insertions(+) diff --git a/android/app/src/main/kotlin/com/skychip/lock/App.kt b/android/app/src/main/kotlin/com/skychip/lock/App.kt index 06adbaf6..e28e27f9 100755 --- a/android/app/src/main/kotlin/com/skychip/lock/App.kt +++ b/android/app/src/main/kotlin/com/skychip/lock/App.kt @@ -2,11 +2,13 @@ package com.skychip.lock import io.flutter.app.FlutterApplication import android.util.Log +import cn.jiguang.api.utils.JCollectionAuth; class App : FlutterApplication() { override fun onCreate() { super.onCreate() Log.d("MyApplication", "Application has started") + JCollectionAuth.setAuth(getApplicationContext(), false); } } \ No newline at end of file diff --git a/lib/tools/push/xs_jPhush.dart b/lib/tools/push/xs_jPhush.dart index f2f431c6..7ab5edb3 100755 --- a/lib/tools/push/xs_jPhush.dart +++ b/lib/tools/push/xs_jPhush.dart @@ -66,6 +66,7 @@ class XSJPushProvider { production: F.isProductionEnv, debug: !F.isProductionEnv, ); + jpush.setAuth(enable: true); jpush.applyPushAuthority( const NotificationSettingsIOS(sound: true, alert: true, badge: false), );