diff --git a/example/IonicCapOneSignal/android/app/capacitor.build.gradle b/example/IonicCapOneSignal/android/app/capacitor.build.gradle index a71d7c66..32b70267 100644 --- a/example/IonicCapOneSignal/android/app/capacitor.build.gradle +++ b/example/IonicCapOneSignal/android/app/capacitor.build.gradle @@ -13,7 +13,7 @@ dependencies { implementation project(':capacitor-haptics') implementation project(':capacitor-keyboard') implementation project(':capacitor-status-bar') - implementation "com.onesignal:OneSignal:5.1.10" + implementation "com.onesignal:OneSignal:5.1.13" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10" } apply from: "../../../../build-extras-onesignal.gradle" diff --git a/example/IonicCapOneSignal/package-lock.json b/example/IonicCapOneSignal/package-lock.json index c55a27fe..c305c73a 100644 --- a/example/IonicCapOneSignal/package-lock.json +++ b/example/IonicCapOneSignal/package-lock.json @@ -48,7 +48,7 @@ }, "../..": { "name": "onesignal-cordova-plugin", - "version": "5.1.4", + "version": "5.2.0", "engines": [ { "name": "cordova-android", diff --git a/package.json b/package.json index f5eee302..7bdb9c33 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.1.4", + "version": "5.2.0", "name": "onesignal-cordova-plugin", "cordova_name": "OneSignal Push Notifications", "description": "OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, and automate notifications that you send.", diff --git a/plugin.xml b/plugin.xml index d865a357..27c29cc0 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="5.2.0"> OneSignal Push Notifications Josh Kasten, Bradley Hesse, Rodrigo Gomez-Palacio diff --git a/src/android/com/onesignal/cordova/OneSignalPush.java b/src/android/com/onesignal/cordova/OneSignalPush.java index aaa426dd..ad8ef648 100644 --- a/src/android/com/onesignal/cordova/OneSignalPush.java +++ b/src/android/com/onesignal/cordova/OneSignalPush.java @@ -352,7 +352,7 @@ public boolean setOnDidDismissInAppMessageHandler(CallbackContext callbackContex public boolean init(CallbackContext callbackContext, JSONArray data) { OneSignalWrapper.setSdkType("cordova"); - OneSignalWrapper.setSdkVersion("050104"); + OneSignalWrapper.setSdkVersion("050200"); try { String appId = data.getString(0); OneSignal.initWithContext(this.cordova.getActivity(), appId); diff --git a/src/ios/OneSignalPush.m b/src/ios/OneSignalPush.m index 7ec8408d..06a65099 100644 --- a/src/ios/OneSignalPush.m +++ b/src/ios/OneSignalPush.m @@ -107,7 +107,7 @@ void processNotificationClicked(OSNotificationClickEvent* event) { void initOneSignalObject(NSDictionary* launchOptions) { OneSignalWrapper.sdkType = @"cordova"; - OneSignalWrapper.sdkVersion = @"050104"; + OneSignalWrapper.sdkVersion = @"050200"; [OneSignal initialize:nil withLaunchOptions:launchOptions]; initialLaunchFired = true; }