diff --git a/package.json b/package.json index 62d4a316..b758198f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.0.3", + "version": "5.0.4", "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 dd4f86a6..b65dae6e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="5.0.4"> 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 d3469adc..bcab5ab3 100644 --- a/src/android/com/onesignal/cordova/OneSignalPush.java +++ b/src/android/com/onesignal/cordova/OneSignalPush.java @@ -344,7 +344,7 @@ public boolean setOnDidDismissInAppMessageHandler(CallbackContext callbackContex public boolean init(CallbackContext callbackContext, JSONArray data) { OneSignalWrapper.setSdkType("cordova"); - OneSignalWrapper.setSdkVersion("050003"); + OneSignalWrapper.setSdkVersion("050004"); 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 76d7a119..0b431f18 100644 --- a/src/ios/OneSignalPush.m +++ b/src/ios/OneSignalPush.m @@ -99,7 +99,7 @@ void processNotificationClicked(OSNotificationClickEvent* event) { void initOneSignalObject(NSDictionary* launchOptions) { OneSignalWrapper.sdkType = @"cordova"; - OneSignalWrapper.sdkVersion = @"050003"; + OneSignalWrapper.sdkVersion = @"050004"; [OneSignal initialize:nil withLaunchOptions:launchOptions]; initialLaunchFired = true; }