Explorar el Código

[new]增加极光推送

zk hace 4 meses
padre
commit
4abddb0c4e

+ 0 - 2
android/app/src/main/AndroidManifest.xml

@@ -14,7 +14,6 @@
     </queries>
 
     <application
-        android:name="${applicationName}"
         android:allowBackup="false"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name">
@@ -26,7 +25,6 @@
             android:hardwareAccelerated="true"
             android:launchMode="singleTask"
             android:screenOrientation="portrait"
-            android:taskAffinity="${applicationId}"
             android:theme="@style/LaunchTheme"
             android:windowSoftInputMode="adjustResize">
             <!-- Specifies an Android theme to apply to this Activity as soon as

+ 3 - 1
lib/data/repositories/account_repository.dart

@@ -270,7 +270,9 @@ class AccountRepository {
         .notificationReport(NotificationReportRequest(deviceToken: token ?? ''))
         .then(HttpHandler.handle(false))
         .then((response) {})
-        .catchError((_) {});
+        .catchError((_) {
+      AtmobLog.e(tag, "onRequestNotificationReport error: $_");
+    });
   }
 }