简体   繁体   中英

How to send events to Firebase Analytics in iMessage extension

I've been trying to send events like when a user taps on a tableview cell to firebase analytics through my imessage app to no avail. Using

FIRAnalytics.logEvent(withName: "\\(stickerUniqueName)", parameters: nil)

I also added -FIRAnalyticsDebugEnabled to my scheme

I have this setup on a regular app, it works just fine and logs the event in the xcode console so I can see it was sent. But I can't get it to show up the same for the imessage extension.

I guess what I'm eluding to is it possible to log events in an imessage extension? Is there any other service I can track button presses with on an imessage extension?

Ok so I checked back the next day and the events showed up in Firebase analytics woot! but I still haven't manage to get the events to log in the xcode console. So problem kinda solved...

Big take away here is that Firebase analytics does work in iMessage extensions. It just takes a couple hours to show up.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM