Merge pull request #467 from LcTerry/master

更新JPush520
This commit is contained in:
LcTerry 2023-09-21 16:46:21 +08:00 committed by GitHub
commit 87808d953a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "jpush-phonegap-plugin",
"version": "5.0.3",
"version": "5.2.0",
"description": "JPush for cordova plugin",
"cordova": {
"id": "jpush-phonegap-plugin",

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="jpush-phonegap-plugin"
version="3.8.6">
version="5.2.0">
<name>JPush</name>
<description>JPush for cordova plugin</description>
@ -170,13 +170,13 @@
<receiver android:name="cn.jpush.android.service.SchedulerReceiver" android:exported="false"/>
<!--since 3.3.0 接收JPush相关事件-->
<receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver"
<service android:name="cn.jiguang.cordova.push.JPushEventReceiver"
android:exported="false">
<intent-filter>
<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
<category android:name="$PACKAGE_NAME"></category>
</intent-filter>
</receiver>
</service>
<!--since 3.3.0 Required SDK核心功能-->
@ -242,7 +242,7 @@
android:name="cn.jpush.android.service.InitProvider"></provider>
</config-file>
<lib-file src="src/android/libs/jpush-android-5.0.3.jar" />
<lib-file src="src/android/libs/jpush-android-5.2.0.jar" />
<source-file src="src/android/PushService.java" target-dir="src/cn/jiguang/cordova/push" />
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" />

View File

@ -15,9 +15,9 @@ import cn.jpush.android.api.CustomMessage;
import cn.jpush.android.api.JPushMessage;
import cn.jpush.android.api.NotificationMessage;
import cn.jpush.android.helper.Logger;
import cn.jpush.android.service.JPushMessageReceiver;
import cn.jpush.android.service.JPushMessageService;
public class JPushEventReceiver extends JPushMessageReceiver {
public class JPushEventReceiver extends JPushMessageService {
private static final String TAG = JPushEventReceiver.class.getSimpleName();