Skip to content

Commit b4f0f07

Browse files
authored
feat(facebook): add setAutoLogAppEventsEnabled method (#3606)
1 parent e4b1719 commit b4f0f07

File tree

1 file changed

+13
-0
lines changed
  • src/@ionic-native/plugins/facebook

1 file changed

+13
-0
lines changed

src/@ionic-native/plugins/facebook/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,19 @@ export class Facebook extends IonicNativePlugin {
287287
return;
288288
}
289289

290+
/**
291+
* Enable or disable the auto log app event feature - https://developers.facebook.com/docs/app-events/gdpr-compliance/
292+
*
293+
* @param {boolean} enabled value to be set
294+
*/
295+
@Cordova({
296+
successIndex: 1,
297+
errorIndex: 2,
298+
})
299+
setAutoLogAppEventsEnabled(enabled: boolean): Promise<void> {
300+
return;
301+
}
302+
290303
/**
291304
* Log a purchase. For more information see the Events section above.
292305
*

0 commit comments

Comments
 (0)