I am trying to integrate app events for my iOS application. Below are the steps I have taken:
No log was getting recorded. After some research I found out that in iOS 14+ isAutoLogAppEventsEnabled
, isAdvertiserTrackingEnabled
and isAdvertiserIDCollectionEnabled
have to be enabled.It is also done.
Any help is really appreciated on this.
Facebook documentation on app events is very vague. It does not contain any information about ATTrackingManager
which is necessary to track events. Below are the steps I have taken to successfully connect app events (iOS 15):
All steps in the documentation.
Info.plist
SceneDelegate
:
func sceneDidBecomeActive(_ scene: UIScene) {
print("sceneDidBecomeActive")
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {[weak self] in
self?.requestTracking()
}
}
This will bring up the following tracking pop up at app launch: