Reputation: 1297
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.
Upvotes: 6
Views: 1861
Reputation: 12844
[FirAPP configure] method is not working like this way. May be, Google did not updated their documentation yet. I have summarised the tutorial here.
iOS Admob Firebase SDKs with/without cocoapods
Upvotes: 0
Reputation: 1297
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.
Upvotes: 4