简体   繁体   中英

Is it possible to use FlurryAPI within a static library?

I'm working on a static library to distribute to iOS developers, and I'd like to incorporate an analytics library like Flurry to know more about how users are interacting with it. My concern is that if app developers are already using Flurry in their apps and the library initializes a new session, it will clobber their existing session.

My first idea is to subclass FlurryAPI , but it's hard to say whether or not it will do any good without knowing the implementation details.

Does anyone have any experience with this or ideas? Thanks in advance.

Received a response from Flurry support saying that it's against their TOS to include Flurry in a static library for use in other apps. Looking into modifying and using the Localytics SDK instead.

You activate Flurry in the AppDelegate (Most preferred way), check there for an existing session?

Or create a method that you need implement in the AppDelegate wich checks and or create a new session.

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