cordova-plugin-firebase-analytics
Advanced tools
Comparing version
{ | ||
"name": "cordova-plugin-firebase-analytics", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Cordova plugin for Firebase Analytics", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -35,4 +35,2 @@ # Cordova plugin for [Firebase Analytics](https://firebase.google.com/docs/analytics/) | ||
Use variable `POD_FIREBASE_VERSION` to override dependency version on iOS. | ||
NOTE: on iOS in order to collect demographic, age, gender data etc. you should additionally [include `AdSupport.framework`](https://firebase.google.com/support/guides/analytics-adsupport) into your project. | ||
@@ -39,0 +37,0 @@ |
@@ -17,2 +17,10 @@ var exec = require("cordova/exec"); | ||
return new Promise(function(resolve, reject) { | ||
if (typeof name !== "string") { | ||
return reject(new TypeError("User property name must be a string")); | ||
} | ||
if (typeof value !== "string") { | ||
return reject(new TypeError("User property value must be a string")); | ||
} | ||
exec(resolve, reject, PLUGIN_NAME, "setUserProperty", [name, value]); | ||
@@ -19,0 +27,0 @@ }); |
Sorry, the diff of this file is not supported yet
15370
0.86%112
5.66%87
-2.25%