Closed chopnut closed 3 years ago
I suppose it's done in .plist of your xcode.
I suppose you are tracking your app events in Facebook manage app events. Are you facing the some problems in tracking the events due to logEvent?
Add these lines to info.plist
<key>FacebookAutoLogAppEventsEnabled</key>
<string>TRUE</string>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<string>TRUE</string>
You need to disable it as it's enabled by default. Not asking user permission unless cleary stated in your privacy policy can lead to violation of RGPD and California Consumer Privacy Act.
To request user consent before collecting data, set the flag value to FALSE To request user consent before collecting data, set the flag value to FALSE
iOS
<config-file parent="FacebookAutoLogAppEventsEnabled" target="*-Info.plist">
<false />
</config-file>
<config-file parent="FacebookAdvertiserIDCollectionEnabled" target="*-Info.plist">
<false />
</config-file>
Source: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios
Android:
<custom-config-file parent="./application" target="AndroidManifest.xml">
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="false" />
<meta-data android:name="firebase_crash_collection_enabled" android:value="false" />
<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="false" />
</custom-config-file>
Source: https://developers.facebook.com/docs/app-events/getting-started-app-events-android
Note: require custom-config-file
plugin because config-file
does not support multiple meta-data
This plugin is deprecated. Check out cordova-plugin-facebook-connect
at https://www.npmjs.com/package/cordova-plugin-facebook-connect. That plugin now supports setting FacebookAutoLogAppEventsEnabled with a new preference, and exposes a new setAutoLogAppEventsEnabled
method.
I seem to be getting this warnings on xCode after compiling/running platform cordova-ios?
I can't seem to find anywhere on the web how to enable this on my project.
: Please set a value for FacebookAutoLogAppEventsEnabled. Set the flag to TRUE if you want to collect app install, app launch and in-app purchase events automatically. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events.
: You haven't set a value for FacebookAdvertiserIDCollectionEnabled. Set the flag to TRUE if you want to collect Advertiser ID for better advertising and analytics results. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events.
I was under the impression that this is the default.
Current set up:
Cordova 8.0.0 Plugin in question cordova-plugin-facebook4@5 (Im using version 5 as 6 doesnt seem to be compatible with cordova 8) Other plugins
cordova-plugin-fcm cordova-plugin-file cordova-plugin-inappbrowser cordova-plugin-customurlscheme cordova-plugin-ionic-webview
Please do not submit support requests or "How to" questions here. Instead, please use channels like StackOverflow or the Ionic forum
For issues or feature requests related to the code in this repository file a Github issue and provide as much details as possible
Bug or feature request
[ ] I'm reporting a reproducible issue with the code [ ] I'm reporting a feature request
Describe the Bug of feature request
A clear and concise description of what the bug or feature request is
Expected Behavior
A clear and concise description of what you expected to happen
Plugin version, OS, devices, etc
Please provide information about the plugin version, OS, devices etc. where you faced your issue
Sample repo
A sample repo will dramatically decrease the time needed for this issue to be fixed, if you could, please provide one in order to reproduce the problem
Alternatively, provide a link to the source code of your app
Additional Context
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, screenshots, OS if applicable, etc.
Important note
Unfortunately since this is a project done in spare time, support requests or "How to" questions will be closed without any further comments
If we consider your issue to not be well documented, it will be closed without further comments too
Thx you in advance for your understanding