cordova-plugin-firebase
Advanced tools
Comparing version 0.1.21 to 0.1.22
@@ -11,3 +11,3 @@ { | ||
"name": "cordova-plugin-firebase", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "Cordova plugin for Google Firebase", | ||
@@ -14,0 +14,0 @@ "cordova": { |
# cordova-plugin-firebase | ||
This plugin brings push notifications, analytics, event tracking, crash reporting and more from Google Firebase to your Cordova project! | ||
Android and iOS supported (including iOS 10). | ||
Android and iOS supported. | ||
@@ -10,7 +10,7 @@ ## Installation | ||
``` | ||
<plugin name="cordova-plugin-firebase" spec="0.1.21" /> | ||
<plugin name="cordova-plugin-firebase" spec="0.1.22" /> | ||
``` | ||
or by running: | ||
``` | ||
cordova plugin add cordova-plugin-firebase@0.1.21 --save | ||
cordova plugin add cordova-plugin-firebase@0.1.22 --save | ||
``` | ||
@@ -193,2 +193,9 @@ Download your Firebase configuration files, GoogleService-Info.plist for ios and google-services.json for android, and place them in the root folder of your cordova project: | ||
### unregister | ||
Unregister from firebase, used to stop receiving push notifications. Call this when you logout user from your app. : | ||
``` | ||
window.FirebasePlugin.unregister(); | ||
``` | ||
### logEvent | ||
@@ -195,0 +202,0 @@ |
@@ -44,2 +44,3 @@ #!/usr/bin/env node | ||
fs.writeFileSync("platforms/ios/" + name + "/Resources/GoogleService-Info.plist", contents) | ||
fs.writeFileSync("platforms/ios/" + name + "/Resources/Resources/GoogleService-Info.plist", contents) | ||
} catch(err) { | ||
@@ -46,0 +47,0 @@ process.stdout.write(err); |
@@ -43,2 +43,6 @@ var exec = require('cordova/exec'); | ||
exports.unregister = function(success, error) { | ||
exec(success, error, "FirebasePlugin", "unregister", []); | ||
}; | ||
exports.logEvent = function(name, params, success, error) { | ||
@@ -45,0 +49,0 @@ exec(success, error, "FirebasePlugin", "logEvent", [name, params]); |
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
63550422
68
268
337