onesignal-cordova-plugin
Advanced tools
Comparing version 1.11.2 to 1.12.0
{ | ||
"version": "1.11.2", | ||
"version": "1.12.0", | ||
"name": "onesignal-cordova-plugin", | ||
@@ -4,0 +4,0 @@ "cordova_name": "OneSignal Push Notifications", |
### OneSignal Cordova Push Notification Plugin | ||
==================================== | ||
[![npm version](https://img.shields.io/npm/v/onesignal-cordova-plugin.svg)](https://www.npmjs.com/package/onesignal-cordova-plugin) | ||
[![npm downloads](https://img.shields.io/npm/dm/onesignal-cordova-plugin.svg)](https://www.npmjs.com/package/onesignal-cordova-plugin) | ||
OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your PhoneGap CLI, PhoneGap Build, Cordova, Ionic, Intel XDK or Sencha Touch app with OneSignal. Supports Android, iOS, Windows Phone 8.1 (WP8.1), and Amazon's Fire OS platforms. | ||
- See http://documentation.onesignal.com/v2.0/docs/phonegap-sdk-overview for setup documentation. | ||
- See http://documentation.onesignal.com/v2.0/docs/phonegap-sdk-overview for setup documentation. |
@@ -9,4 +9,6 @@ | ||
launchArgs = require('cordova/platform').activationContext; | ||
if (launchArgs.type === "activated" && launchArgs.args != "") | ||
OneSingal_launchString = launchArgs.args; | ||
if(launchArgs) { | ||
if (launchArgs.type === "activated" && launchArgs.args != "") | ||
OneSingal_launchString = launchArgs.args; | ||
} | ||
@@ -73,2 +75,4 @@ // Process launch args from warn start | ||
postNotification: function (successCallback, errorCallback, params) { }, | ||
promptLocation: function (successCallback, errorCallback, params) { }, | ||
setEmail: function (successCallback, errorCallback, params) { }, | ||
setLogLevel: function (successCallback, errorCallback, params) { } | ||
@@ -75,0 +79,0 @@ }; |
@@ -109,2 +109,10 @@ /** | ||
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
819088
57
774
8