onesignal-cordova-plugin-pgb-compat
Advanced tools
Comparing version 1.11.2 to 1.12.3
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /** |
{ | ||
"version": "1.11.2", | ||
"version": "1.12.3", | ||
"name": "onesignal-cordova-plugin-pgb-compat", | ||
@@ -4,0 +4,0 @@ "cordova_name": "OneSignal Push Notifications Compat", |
@@ -0,1 +1,2 @@ | ||
var OneSingal_launchString = ""; | ||
@@ -5,11 +6,15 @@ var OneSignal_JSBridge = new OneSignalSDK_WP_WNS_WRTC.WinJSBridge(); | ||
// Process launch args from cold start | ||
launchArgs = require('cordova/platform').activationContext; | ||
if(launchArgs) { | ||
if (launchArgs.type === "activated" && launchArgs.args != "") | ||
OneSingal_launchString = launchArgs.args; | ||
} | ||
// Process launch args from warn start | ||
function onActivatedHandler(args) { | ||
if (args.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) { | ||
if (OneSignal_app_id === null) | ||
OneSingal_launchString = args.detail.arguments; | ||
else | ||
OneSignal_JSBridge.init(OneSignal_app_id, args.detail.arguments); | ||
} | ||
if (args.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) | ||
OneSignal_JSBridge.init(OneSignal_app_id, args.detail.arguments); | ||
} | ||
WinJS.Application.addEventListener("activated", onActivatedHandler, false); | ||
@@ -70,2 +75,4 @@ | ||
postNotification: function (successCallback, errorCallback, params) { }, | ||
promptLocation: function (successCallback, errorCallback, params) { }, | ||
setEmail: function (successCallback, errorCallback, params) { }, | ||
setLogLevel: function (successCallback, errorCallback, params) { } | ||
@@ -72,0 +79,0 @@ }; |
@@ -0,0 +0,0 @@ /** |
/** | ||
* Modified MIT License | ||
* | ||
* Copyright 2015 OneSignal | ||
* Copyright 2016 OneSignal | ||
* | ||
@@ -109,2 +109,10 @@ * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
OneSignal.prototype.promptLocation = function() { | ||
cordova.exec(function(){}, function(){}, "OneSignalPush", "promptLocation", []); | ||
}; | ||
OneSignal.prototype.setEmail = function(email) { | ||
cordova.exec(function(){}, function(){}, "OneSignalPush", "setEmail", [email]); | ||
}; | ||
OneSignal.prototype.setLogLevel = function(logLevel) { | ||
@@ -111,0 +119,0 @@ cordova.exec(function(){}, function(){}, "OneSignalPush", "setLogLevel", [logLevel]); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
970222
57
502