diff --git a/src/@ionic-native/plugins/appsflyer/index.ts b/src/@ionic-native/plugins/appsflyer/index.ts index a14347efef..530c8a0576 100644 --- a/src/@ionic-native/plugins/appsflyer/index.ts +++ b/src/@ionic-native/plugins/appsflyer/index.ts @@ -99,8 +99,8 @@ export class Appsflyer extends IonicNativePlugin { * @param {string} eventName custom event name, is presented in your dashboard * @param {AppsflyerEvent} eventValues event details */ - @Cordova({ sync: true }) - trackEvent(eventName: string, eventValues: AppsflyerEvent): void {} + @Cordova() + logEvent(eventName: string, eventValues: AppsflyerEvent): void {} /** * Setting your own Custom ID enables you to cross-reference your own unique ID with AppsFlyer’s user ID and the other devices’ IDs. This ID is available in AppsFlyer CSV reports along with postbacks APIs for cross-referencing with you internal IDs. @@ -114,7 +114,7 @@ export class Appsflyer extends IonicNativePlugin { * @param {boolean} customerUserId In some extreme cases you might want to shut down all SDK tracking due to legal and privacy compliance. This can be achieved with the isStopTracking API. Once this API is invoked, our SDK will no longer communicate with our servers and stop functioning. */ @Cordova({ sync: true }) - stopTracking(isStopTracking: boolean): void {} + Stop(isStopTracking: boolean): void {} /** * Get the data from Attribution @@ -125,7 +125,9 @@ export class Appsflyer extends IonicNativePlugin { return; } + /** + * @deprecated * Enables app uninstall tracking * @param {string} token GCM/FCM ProjectNumber * @returns {Promise} @@ -162,7 +164,7 @@ export class Appsflyer extends IonicNativePlugin { * @param {boolean} disable Set to true to opt-out user from tracking */ @Cordova({ sync: true }) - deviceTrackingDisabled(disable: boolean): void {} + anonymizeUser(disable: boolean): void {} /** * Set AppsFlyer’s OneLink ID. Setting a valid OneLink ID will result in shortened User Invite links, when one is generated. The OneLink ID can be obtained on the AppsFlyer Dashboard. @@ -187,7 +189,7 @@ export class Appsflyer extends IonicNativePlugin { * @param {string} campaign Promoted Campaign */ @Cordova({ sync: true }) - trackCrossPromotionImpression(appId: string, campaign: string): void {} + logCrossPromotionImpression(appId: string, campaign: string): void {} /** * Use this call to track the click and launch the app store's app page (via Browser) @@ -196,5 +198,5 @@ export class Appsflyer extends IonicNativePlugin { * @param {Object} options Additional Parameters to track */ @Cordova({ sync: true }) - trackAndOpenStore(appId: string, campaign: string, options: Object): void {} + logCrossPromotionAndOpenStore(appId: string, campaign: string, options: Object): void {} }