I want to gather some info of the users who are using the action extension of my iOS app with google firebase analytics. It works well with the main app. But how to make it work with the extension? Is there a way to do that? I tried to create 2 apps on google firebase console(since main app and the action extension have different bundle ids), seems don't work.
According to an answer from Firebase support. What we should do is putting the [FirApp configure] at the entry point of the extension. For the action extension, I just put it at the first line under [super viewDidLoad] in viewDidLoad method.
And yes, a separate GoogleService-Info.plist file is needed.
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