AndroidManifest.xml 配置如下:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.svell.goodscend"
android:versionCode="83"
android:versionName="1.0.0" >
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true" />
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="19" />
<!-- HBuilder Runtime 基础权限 begin -->
<!-- 联网 -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- 使用存储卡 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<!-- Audio begin -->
<!-- 访问录音设备 -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- 修改播放声音通道 -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<!-- Audio end -->
<!-- Camera begin -->
<!-- 调用摄像头 -->
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<!-- Camera end -->
<!-- Contacts begin -->
<!-- 访问联系人 -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<!-- Contacts end -->
<!-- Device begin -->
<!-- 屏幕保持唤醒 不锁屏 plus.device.setWakelock();plus.device.isWakelock(); -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- 震动 权限 plus.device.vibrate(); -->
<uses-permission android:name="android.permission.VIBRATE" />
<!-- 拨打电话 plus.device.dail(); -->
<uses-permission android:name="android.permission.CALL_PHONE" />
<!-- 访问网络状态 plus.networkinfo.* -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- 读写手机状态和身份 plus.devices.* -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- Device end -->
<!-- Messaging begin -->
<!-- 拨打电话权限 -->
<!-- 发短信权限 -->
<!-- 读/写短/彩信箱权限 -->
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<!-- Messaging end -->
<!-- Invocation - JSB begin -->
<!-- 调用系统API,通过Native.js调用系统API需要的权限添加到这里 -->
<!-- 安装快捷方式 -->
<!-- 卸载快捷方式 -->
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
<!-- Invocation - JSB end -->
<!-- iBeancon功能所需权限 -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<!-- 个推3.0电子围栏功能所需权限 -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 个推 start -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="getui.permission.GetuiService.cn.svell.goodscend" />
<permission android:name="getui.permission.GetuiService.cn.svell.goodscend" android:protectionLevel="normal" />
<!-- 个推 end -->
<application
android:name="io.dcloud.application.DCloudApplication"
android:allowClearUserData="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:largeHeap="true" >
<!-- IM START -->
<meta-data
android:name="EASEMOB_APPKEY"
android:value="svell-cn#goodscend" />
<meta-data
android:name="TALKING_URL"
android:value="http://goodscend.svell.cn/IMService.php" />
<service android:name="com.easemob.chat.EMChatService" />
<activity
android:name="cn.svell.common.BaseActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize"
android:theme="@style/AppFullscreen"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" />
<!-- IM END -->
<activity
android:name="io.dcloud.PandoraEntry"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:hardwareAccelerated="true"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="user"
android:theme="@style/TranslucentTheme"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="io.dcloud.PandoraEntryActivity"
android:configChanges="orientation|keyboardHidden|screenSize|keyboard|navigation|mcc|mnc|fontScale"
android:hardwareAccelerated="true"
android:label="5+Debug"
android:launchMode="singleTask"
android:screenOrientation="user"
android:theme="@style/DCloudTheme"
android:windowSoftInputMode="adjustResize" >
</activity>
<service
android:name="io.dcloud.common.adapter.io.MiniServerService"
android:exported="true" />
<activity android:name="io.dcloud.imagepick.CustomGalleryActivity" >
<intent-filter>
<action android:name="io.dcloud.ACTION_PICK" />
<action android:name="io.dcloud.ACTION_MULTIPLE_PICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- 个推配置 begin -->
<meta-data
android:name="PUSH_APPID"
android:value="WZUfsVqfSd9K0Vd5QhJNC" />
<meta-data
android:name="PUSH_APPKEY"
android:value="Z5DQ6apegq7xTCiVwm3Sf6" />
<meta-data
android:name="PUSH_APPSECRET"
android:value="T2lRkRXKHp8NRxaWZgzlY1" />
<service
android:name="com.igexin.sdk.PushService"
android:exported="true"
android:label="NotificationCenter"
android:process=":pushservice" >
<intent-filter>
<action android:name="com.igexin.sdk.action.service.message" />
</intent-filter>
</service>
<service
android:name="com.igexin.sdk.PushServiceUser"
android:exported="true"
android:label="NotificationCenterUser" >
<intent-filter>
<action android:name="com.igexin.sdk.action.user.message" />
</intent-filter>
</service>
<receiver android:name="com.igexin.sdk.PushReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="com.igexin.sdk.action.refreshls" />
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<receiver
android:name="com.igexin.sdk.PushManagerReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.igexin.sdk.action.pushmanager" />
</intent-filter>
</receiver>
<activity
android:name="com.igexin.sdk.PushActivity"
android:excludeFromRecents="true"
android:exported="false"
android:process=":pushservice"
android:taskAffinity="com.igexin.sdk.PushActivityTask"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name="com.igexin.sdk.GActivity"
android:excludeFromRecents="true"
android:exported="true"
android:process=":pushservice"
android:taskAffinity="com.igexin.sdk.PushActivityTask"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<service
android:name="com.igexin.download.DownloadService"
android:process=":pushservice" />
<receiver android:name="com.igexin.download.DownloadReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<provider
android:name="com.igexin.download.DownloadProvider"
android:authorities="downloads.cn.svell.goodscend"
android:exported="true"
android:process=":pushservice" />
<receiver android:name="io.dcloud.feature.apsGt.PushMessageReceiver" >
<intent-filter>
<action android:name="com.igexin.sdk.action.WZUfsVqfSd9K0Vd5QhJNC" />
</intent-filter>
</receiver>
<receiver android:name="io.dcloud.feature.apsGt.GTNotificationReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="cn.svell.goodscend.__CREATE_NOTIFICATION" />
<action android:name="cn.svell.goodscend.__REMOVE_NOTIFICATION" />
<action android:name="cn.svell.goodscend.__CLEAR_NOTIFICATION" />
<action android:name="cn.svell.goodscend.__CLILK_NOTIFICATION" />
</intent-filter>
</receiver>
<!-- Push(推送)-个推 end -->
<!-- 微信分享 配置begin -->
<meta-data
android:name="WX_SECRET"
android:value="41f962f5be8e65a32304cf4e9d2bbcd6" />
<meta-data
android:name="WX_APPID"
android:value="wx496a973a2da16bad" />
<activity
android:name=".wxapi.WXEntryActivity"
android:exported="true"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="wx496a973a2da16bad" />
</intent-filter>
</activity>
<!-- 微信分享 配置end -->
<!-- 支付宝支付 配置begin -->
<activity
android:name="com.alipay.sdk.app.H5PayActivity"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false"
android:screenOrientation="behind"
android:windowSoftInputMode="adjustResize|stateHidden" >
</activity>
<activity
android:name="com.alipay.sdk.auth.AuthActivity"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false"
android:screenOrientation="behind" >
</activity>
<!-- 支付宝支付 配置end -->
<!-- 微信支付配置 start -->
<activity
android:name=".wxapi.WXPayEntryActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<meta-data
android:name="WX_APPID"
android:value="wx496a973a2da16bad" />
<!-- 微信支付配置end -->
</application>
</manifest>
dcloud_properties.xml 配置如下:
<feature name="Push" value="io.dcloud.feature.aps.APSFeatureImpl">
<module name="igexin" value="io.dcloud.feature.apsGt.GTPushService"/>
<!-- mkeypush -->
</feature>
0 个回复