From b4f0f0706400f6500e48cd1305c20371977a6869 Mon Sep 17 00:00:00 2001 From: Hans Krywalsky Date: Sat, 23 Jan 2021 18:10:13 +0100 Subject: [PATCH] feat(facebook): add setAutoLogAppEventsEnabled method (#3606) --- src/@ionic-native/plugins/facebook/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index dc877ee5ca..18d36ec878 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -287,6 +287,19 @@ export class Facebook extends IonicNativePlugin { return; } + /** + * Enable or disable the auto log app event feature - https://developers.facebook.com/docs/app-events/gdpr-compliance/ + * + * @param {boolean} enabled value to be set + */ + @Cordova({ + successIndex: 1, + errorIndex: 2, + }) + setAutoLogAppEventsEnabled(enabled: boolean): Promise { + return; + } + /** * Log a purchase. For more information see the Events section above. *