代码拉取完成,页面将自动刷新
同步操作将从 cwwc26/lezhu-ionic-push-plugin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="lezhu-push-plugin"
version="1.0.0">
<name>PushPlugin</name>
<description>Lezhu Push Plugin</description>
<license>Apache 2.0</license>
<keywords>Lezhu,push</keywords>
<repo></repo>
<issue></issue>
<js-module src="www/PushPlugin.js" name="PushPlugin">
<runs/>
<clobbers target="pushPlugin" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PushPlugin">
<param name="android-package" value="com.lezhu.plugin.PushPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- Push service 运行需要的权限 -->
<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.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- 4.6版本新增的Activity声明,提升Push后台存活率 -->
<activity
android:name="com.baidu.android.pushservice.PushKeepAlive"
android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
<!-- lezhu push service start -->
<receiver android:name="com.fangbaba.crm.PushReceiver">
<intent-filter>
<action android:name="com.baidu.android.pushservice.action.MESSAGE" />
<action android:name="com.baidu.android.pushservice.action.RECEIVE" />
<action android:name="com.baidu.android.pushservice.action.notification.CLICK" />
</intent-filter>
</receiver>
<activity android:configChanges="orientation|keyboardHidden" android:label="MediaViewActivity" android:name="com.baidu.android.pushservice.richmedia.MediaViewActivity">
</activity>
<activity android:configChanges="orientation|keyboardHidden" android:label="MediaListActivity" android:launchMode="singleTask" android:name="com.baidu.android.pushservice.richmedia.MediaListActivity">
</activity>
<!-- push service start -->
<!-- 用于接收系统消息以保证PushService正常运行 -->
<receiver android:name="com.baidu.android.pushservice.PushServiceReceiver"
android:process=":bdservice_v1" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="com.baidu.android.pushservice.action.notification.SHOW" />
<action android:name="com.baidu.android.pushservice.action.media.CLICK" />
<!-- 以下四项为可选的action声明,可大大提高service存活率和消息到达速度 -->
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<!-- Push服务接收客户端发送的各种请求-->
<receiver android:name="com.baidu.android.pushservice.RegistrationReceiver"
android:process=":bdservice_v1" >
<intent-filter>
<action android:name="com.baidu.android.pushservice.action.METHOD" />
<action android:name="com.baidu.android.pushservice.action.BIND_SYNC" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<service android:name="com.baidu.android.pushservice.PushService" android:exported="true"
android:process=":bdservice_v1" >
<intent-filter >
<action android:name="com.baidu.android.pushservice.action.PUSH_SERVICE" />
</intent-filter>
</service>
<!-- 4.4版本新增的CommandService声明,提升小米和魅族手机上的实际推送到达率 -->
<service android:name="com.baidu.android.pushservice.CommandService"
android:exported="true" />
<!-- push结束 -->
</config-file>
<source-file src="libs/android/pushservice-4.6.0.68.jar" target-dir="libs/" />
<source-file src="libs/android/arm64-v8a/libbdpush_V2_5.so" target-dir="libs/arm64-v8a" />
<source-file src="libs/android/armeabi/libbdpush_V2_5.so" target-dir="libs/armeabi" />
<source-file src="libs/android/armeabi-v7a/libbdpush_V2_5.so" target-dir="libs/armeabi-v7a" />
<source-file src="libs/android/mips/libbdpush_V2_5.so" target-dir="libs/mips" />
<source-file src="libs/android/mips64/libbdpush_V2_5.so" target-dir="libs/mips64" />
<source-file src="libs/android/x86/libbdpush_V2_5.so" target-dir="libs/x86" />
<source-file src="libs/android/x86_64/libbdpush_V2_5.so" target-dir="libs/x86_64" />
<source-file src="src/android/com/lezhu/plugin/LZNotifyListener.java" target-dir="src/com/lezhu/plugin" />
<source-file src="src/android/com/lezhu/plugin/PushPlugin.java" target-dir="src/com/lezhu/plugin" />
<source-file src="src/android/com/fangbaba/crm/PushReceiver.java" target-dir="src/com/fangbaba/crm" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PushPlugin">
<param name="ios-package" value="PushPlugin"/>
</feature>
</config-file>
<header-file src="src/ios/PushPlugin.h" />
<source-file src="src/ios/PushPlugin.m" />
<!-- Wechat Official -->
<header-file src="libs/ios/BPush.h" />
<source-file src="libs/ios/libBPush.a" framework="true" />
<!-- Other required frameworks -->
<framework src="libz.dylib" />
<framework src="Foundation.framework" />
<framework src="CoreTelephony.framework" />
<framework src="SystemConfiguration.framework" />
</platform>
</plugin>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。