“yanghuaxuan” 3 years ago
parent
commit
508adb925f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/utils/mob_push_util.dart

+ 2
- 1
lib/utils/mob_push_util.dart View File

@@ -102,7 +102,8 @@ class MobPushUtil {
//设置远程推送环境,向用户授权(仅 iOS) //设置远程推送环境,向用户授权(仅 iOS)
MobpushPlugin.setCustomNotification(); MobpushPlugin.setCustomNotification();
// 开发环境 false, 线上环境 true // 开发环境 false, 线上环境 true
MobpushPlugin.setAPNsForProduction(true);
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
MobpushPlugin.setAPNsForProduction(inProduction);
} }
//上传隐私协议许可 //上传隐私协议许可
MobpushPlugin.updatePrivacyPermissionStatus(true); MobpushPlugin.updatePrivacyPermissionStatus(true);


Loading…
Cancel
Save