cordova-plugin-fcm-ng
Advanced tools
Comparing version 8.0.1 to 8.1.0
# Changelog | ||
### Version 8.1.0 (19/11/2020) | ||
- Adds getDynamicLink function | ||
### Version 8.0.1 (14/08/2020) | ||
@@ -4,0 +7,0 @@ - Refactor on Dynamic Links |
{ | ||
"version": "8.0.1", | ||
"version": "8.1.0", | ||
"name": "cordova-plugin-fcm-ng", | ||
@@ -4,0 +4,0 @@ "cordova_name": "Cordova FCM Push Plugin NG", |
@@ -152,2 +152,7 @@ # Google Firebase Cloud Messaging Cordova Push Plugin | ||
### getDynamicLink | ||
```js | ||
FCMPluginNG.getDynamicLink(); | ||
``` | ||
### onDynamicLink | ||
@@ -154,0 +159,0 @@ ```js |
@@ -61,5 +61,12 @@ var exec = require('cordova/exec'); | ||
FCMPlugin.prototype.onDynamicLink = function(success, error) { | ||
exec(success, error, 'FCMPlugin', 'onDynamicLink', []); | ||
// GET DYNAMIC LINK CALLBACK // | ||
FCMPlugin.prototype.getDynamicLink = function(callback, success, error){ | ||
FCMPlugin.prototype.getDynamicLinkReceived = callback; | ||
exec(success, error, "FCMPlugin", 'getDynamicLink',[]); | ||
} | ||
// DEFAULT GET DYNAMIC LINK CALLBACK // | ||
FCMPlugin.prototype.getDynamicLinkReceived = function(payload){ | ||
console.log("Received dynamic link") | ||
console.log(payload) | ||
} | ||
@@ -70,2 +77,6 @@ FCMPlugin.prototype.createDynamicLink = function(params, success, error) { | ||
FCMPlugin.prototype.onDynamicLink = function(success, error) { | ||
exec(success, error, 'FCMPlugin', 'getDynamicLink', []); | ||
} | ||
// FIRE READY // | ||
@@ -72,0 +83,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
24815102
179
191