Thanks for this plugin,
I am in middle of implementing this plugin in my quasar framework app. The intent is Performance Analytics, Campaign Tracking, etc. Currently using V1(quasar framework) and V3(capacitor)
Although, I have installed the plugin in capacitor and it tracks the events in events manager on Facebook. It only tracksActivate app and App installs events. When I fire custom events as the per the documentation, the message is a success but it doesn't log any custom events.
I am not sure, what am i missing here and how can i log custom events using this plugin.
[x] I'm reporting a reproducible issue with the code
Describe the Bug of feature request
Facebook App Events are not being submitted on iOS >14.0 devices & simulators. Event Logging works on pre-14.0 devices & All Android Devices.
Expected Behavior
Events should be logged after setAdvertiserTrackingEnabled succeeds. and the flags are set.
Sample repo
Info.Plist
<key>FacebookAutoLogAppEventsEnabled</key>
<true/>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<true/>
<key>NSUserTrackingUsageDescription</key>
<string>Kampanya ve reklam özelleştirmesi için</string>
Hi, i recently switched from cordova-plugin-facebook-connect to your forked version cordova-plugin-fbsdk. I'm stuck on one issue with callbacks from GameRequestDialog that doesn't work on Android. I found out that this issue starts in FBSDK 12 and above. FBSDK 11.3 works properly. Do you have any idea maybe what can cause this? Thank you
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
When trying to redirect back to the parent application, code execution is stopped with the error - Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
Expected Behavior
Redirect successfully completes and the parent application continues to execute normally. In the case of a modal instead of a native share, the modal would successfully close.
Plugin Version v.4.0.4 on all iOS devices I've tried, but mostly have been using an iPhone 14 Pro Max running iOS 16.6. Using v16.0.1 - v16.1.3 seems to be affected by this.
To replicate this issue, you can start up the Lab Project and start it as normal. Login will work, however the Facebook Share as well as the Game Requests seem to be broken.
Additional Context
I've been working on this for a day or two, I wanted to try and take care of the share issue myself since it doesn't appear that this repo is supported by an organization, and is the work of individuals which is very much appreciated.
One piece of documentation that I ran into that might be helpful is the Facebook iOS Getting Started Page. Step 3 mentions changing the AppDelegate to include some additional code, but it doesn't appear that the app delegate isn't modified in our case. It seems like this should either be handled by the plugin, or mentioned on the README for the IOS getting started section of this repo. Sadly, I wasn't able to get this code to work, since it appears to be written in a different language and I'm not a Swift Developer, and the syntax seems to be different enough that I didn't feel capable of modifying the library.
I've included a video showing the hang of the modal. I don't think it will be too helpful, but wanted to include it regardless. One other note is that in your lab project, the href doesn't appear to be passed through to facebook, but in a pure Cordova application I didn't see that issue.
The Thread 1 EXC_BAD_ACCESS appears to be thrown by UIApplicationMain, which seems to just be the main function for the app. Again, this is sadly not my wheelhouse, I wish I could be more help. If you have additional questions, please feel free to ask!
When an Android device is low on memory, the Cordova activity may be destroyed in the background when the Facebook Login activity opens. After a successful login, Android re-launches the Cordova activity using the process described at the link below. But the result of the Login Activity isn't handled correctly by the Cordova Facebook plugin. The documentation at the link below describes the methods that can be used by Cordova plugins to correctly handle this situation.