cordova-plugin-fcm-ng
Advanced tools
Comparing version 7.0.1 to 8.0.0
# Changelog | ||
### Version 8.0.0 (10/08/2020) | ||
- New Dynamic Links support for iOS | ||
- New Dynamic Links support for Android | ||
- Requires `cordova` >= 9.0.0 and `cordova-android` >= 9.0.0 | ||
- Latest version of Firebase using Cocoapods | ||
### Version 7.0.1 (07/06/2020) | ||
@@ -4,0 +10,0 @@ - Fix build `cordova-android` 8.1.0. |
{ | ||
"version": "7.0.1", | ||
"version": "8.0.0", | ||
"name": "cordova-plugin-fcm-ng", | ||
@@ -4,0 +4,0 @@ "cordova_name": "Cordova FCM Push Plugin NG", |
@@ -81,2 +81,7 @@ # Google Firebase Cloud Messaging Cordova Push Plugin | ||
#### Clear push notifications badge | ||
```javascript | ||
FCMPluginNG.clearAllNotifications(); | ||
``` | ||
#### Send notification. Payload example (REST API) | ||
@@ -128,3 +133,3 @@ Full documentation: https://firebase.google.com/docs/cloud-messaging/http-server-ref | ||
```js | ||
FCMPluginNG.analytics.logEvent("my_event", {param1: "value1"}); | ||
FCMPluginNG.logEvent("my_event", {param1: "value1"}); | ||
``` | ||
@@ -147,2 +152,14 @@ | ||
## Dynamic Links | ||
### onDynamicLink | ||
```js | ||
FCMPluginNG.onDynamicLink(); | ||
``` | ||
### createDynamicLink | ||
```js | ||
FCMPluginNG.createDynamicLink({params}); | ||
``` | ||
## License | ||
@@ -149,0 +166,0 @@ ``` |
@@ -59,2 +59,12 @@ var exec = require('cordova/exec'); | ||
// Dynamic Link Plugin | ||
FCMPlugin.prototype.onDynamicLink = function(success, error) { | ||
exec(success, error, 'FCMPlugin', 'onDynamicLink', []); | ||
} | ||
FCMPlugin.prototype.createDynamicLink = function(params, success, error) { | ||
exec(success, error, 'FCMPlugin', 'createDynamicLink', [params, 0]); | ||
} | ||
// FIRE READY // | ||
@@ -61,0 +71,0 @@ exec(function(result){ console.log("FCMPlugin NG Ready OK") }, function(result){ console.log("FCMPlugin Ready ERROR") }, "FCMPlugin",'ready',[]); |
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
24813195
50
169
186