I have updated the FBSDKAppEvents to 12.0.0 version, and the function AppEvents.activateApp() in AppDelegate is now deprecated. I have searched in the Facebook documentation, and unfortunately I didn't found any information about that, and I don't understand what's method I want to use to replace the deprecated:
The message is:
"'activateApp()' is deprecated: The class method activateApp
is deprecated. It is replaced by an instance method of the same name."
Did anyone know what code I have to put to replace the deprecated one?
I have updated the FBSDKAppEvents to 12.0.0 version and now we can use this code below:
func applicationDidBecomeActive(_ application: UIApplication) {
AppEvents.shared.activateApp()
}
And some Settings on FDSDKAppEvents changed a little, and now we need to update to Settings.shared, for example:
Settings.shared.enableLoggingBehavior(.appEvents)
Settings.shared.enableLoggingBehavior(.developerErrors)
Settings.shared.enableLoggingBehavior(.cacheErrors)
Settings.shared.enableLoggingBehavior(.uiControlErrors)
Settings.shared.isAdvertiserTrackingEnabled = isEnabled
Settings.shared.isAutoLogAppEventsEnabled = isEnabled
Settings.shared.isAdvertiserIDCollectionEnabled = isEnabled
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With