clevertap-cordova
Advanced tools
Comparing version 2.0.10 to 2.0.11
Change Log | ||
========== | ||
Version 2.0.11 *(29 July, 2018)* | ||
------------------------------------------- | ||
fix android package name | ||
Version 2.0.10 *(25 July, 2018)* | ||
@@ -5,0 +9,0 @@ ------------------------------------------- |
{ | ||
"name": "clevertap-cordova", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "CleverTap Plugin for Cordova/PhoneGap", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -49,22 +49,11 @@ CleverTap Cordova Plugin | ||
##### Workaround For Ionic3 | ||
- [see the included Ionic3 Example project for example usage](https://github.com/CleverTap/clevertap-cordova/blob/master/Ionic3Example/src/app/app.component.ts). | ||
##### For Ionic3 | ||
``` | ||
npm install @ionic-native/clevertap --save | ||
``` | ||
- [see the included Ionic3 Example project for usage](https://github.com/CleverTap/clevertap-cordova/blob/master/Ionic3Example/src/app/app.component.ts). | ||
in your typescript: | ||
- be sure to [add CleverTap as a provider in your app module](https://github.com/CleverTap/clevertap-cordova/blob/master/Ionic3Example/src/app/app.module.ts). | ||
``` | ||
declare var CleverTap: any; | ||
export class MyApp { | ||
rootPage:any = TabsPage; | ||
getCleverTap = () => { | ||
try { | ||
return CleverTap; | ||
} catch(e) { | ||
console.warn("CleverTap not available in the browser, run in a device/simulator"); | ||
return null; | ||
} | ||
}; | ||
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { | ||
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, clevertap: CleverTap) { | ||
platform.ready().then(() => { | ||
@@ -76,7 +65,6 @@ // Okay, so the platform is ready and our plugins are available. | ||
var clevertap = this.getCleverTap(); | ||
if (clevertap) { | ||
clevertap.setDebugLevel(2); | ||
clevertap.profileGetCleverTapID((id) => {console.log(id)}); | ||
} | ||
... | ||
clevertap.setDebugLevel(2); | ||
clevertap.profileGetCleverTapID((id) => {console.log(id)}); | ||
... | ||
}); | ||
@@ -86,3 +74,2 @@ } | ||
``` | ||
@@ -89,0 +76,0 @@ |
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
44941388
215