Push permissions required for each channel

อัพเดทล่าสุด :2022-11-22

In addition to optional permissions, all required permissions are included in the aar package and no configuration is required.

ENGAGELAB

<!-- Required --> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <!-- Optional, need to be configured by yourself, notification vibration --> <uses-permission android:name="android.permission.VIBRATE" />
               <!-- Required -->
     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    
     <!-- Optional, need to be configured by yourself, notification vibration -->
     <uses-permission android:name="android.permission.VIBRATE" />

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

FCM

<!-- Required --> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
               <!-- Required -->
     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
     <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
     <uses-permission android:name="android.permission.WAKE_LOCK"/>
     <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
     <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

huawei

<!-- Required --> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/> <uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE"/> <permission android:name="${applicationId}.permission.PROCESS_PUSH_MSG" android:protectionLevel="signature"/> <permission android:name="${applicationId}.permission.PUSH_PROVIDER" android:protectionLevel="signature"/> <permission android:name="${applicationId}.permission.PUSH_WRITE_PROVIDER" android:protectionLevel="signature"/> <uses-permission android:name="${applicationId}.permission.PROCESS_PUSH_MSG"/> <uses-permission android:name="${applicationId}.permission.PUSH_PROVIDER"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> <uses-permission android:name="com.huawei.appmarket.service.commondata.permission.GET_COMMON_DATA"/> <queries> <intent> <action android:name="com.apptouch.intent.action.update_hms"/> </intent> <intent> <action android:name="com.huawei.appmarket.intent.action.AppDetail"/> </intent> <package android:name="com.hisilicon.android.hiRMService"/> <intent> <action android:name="com.huawei.hms.core.aidlservice"/> </intent> <intent> <action android:name="com.huawei.hms.core"/> </intent> </queries>
               <!-- Required -->
     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
     <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
     <uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE"/>
     <permission android:name="${applicationId}.permission.PROCESS_PUSH_MSG"
     android:protectionLevel="signature"/>
     <permission android:name="${applicationId}.permission.PUSH_PROVIDER"
     android:protectionLevel="signature"/>
     <permission android:name="${applicationId}.permission.PUSH_WRITE_PROVIDER"
     android:protectionLevel="signature"/>
     <uses-permission android:name="${applicationId}.permission.PROCESS_PUSH_MSG"/>
     <uses-permission android:name="${applicationId}.permission.PUSH_PROVIDER"/>
     <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
     <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
     <uses-permission android:name="com.huawei.appmarket.service.commondata.permission.GET_COMMON_DATA"/>
     <queries>
         <intent>
             <action android:name="com.apptouch.intent.action.update_hms"/>
         </intent>
         <intent>
             <action android:name="com.huawei.appmarket.intent.action.AppDetail"/>
         </intent>
         <package android:name="com.hisilicon.android.hiRMService"/>
         <intent>
             <action android:name="com.huawei.hms.core.aidlservice"/>
         </intent>
         <intent>
             <action android:name="com.huawei.hms.core"/>
         </intent>
     </queries>

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

mi

<!-- Required --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.VIBRATE"/>
               <!-- Required -->
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
     <uses-permission android:name="android.permission.VIBRATE"/>

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

mz

<!-- Required --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="com.meizu.flyme.permission.PUSH" /> <!-- Optional, need to be configured by yourself, used when compatible with Flyme5 and the push service is an old version --> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <!-- Optional, need to be configured by yourself, compatible with Flyme5 permission configuration --> <uses-permission android:name="com.meizu.flyme.push.permission.RECEIVE" /> <permission android:name="${applicationId}.push.permission.MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="${applicationId}.push.permission.MESSAGE" />
               <!-- Required -->
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
     <uses-permission android:name="com.meizu.flyme.permission.PUSH" />
    
     <!-- Optional, need to be configured by yourself, used when compatible with Flyme5 and the push service is an old version -->
     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
     <!-- Optional, need to be configured by yourself, compatible with Flyme5 permission configuration -->
     <uses-permission android:name="com.meizu.flyme.push.permission.RECEIVE" />
     <permission
         android:name="${applicationId}.push.permission.MESSAGE"
         android:protectionLevel="signature" />
     <uses-permission android:name="${applicationId}.push.permission.MESSAGE" />

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

##oppo

<!-- Required --> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE" /> <uses-permission android:name="com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE" />
               <!-- Required -->
     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
     <uses-permission android:name="com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE" />
     <uses-permission android:name="com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE" />

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

vivo

<!-- Required --> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="com.push.permission.UPSTAGESERVICE" />
          <!-- Required -->
<uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="com.push.permission.UPSTAGESERVICE" />

        
โค้ดนี้โชว์เป็นหน้าต่างลอย

honor

<!--honor corner mark--> <uses-permission android:name="com.hihonor.android.launcher.permission.CHANGE_BADGE" /> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
               <!--honor corner mark-->
     <uses-permission android:name="com.hihonor.android.launcher.permission.CHANGE_BADGE" />
<uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

        
โค้ดนี้โชว์เป็นหน้าต่างลอย
在文档中心打开
icon
Contact Sales