-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use the Mixpanel iOS library inside an application extension? #152
Comments
+1 official support would be nice. any uses of UIApplication aren't available so it would be nice to define a means for avoiding it or just updating the read me to explicitly state the install is different. here was the issue tracking AFNetworking changes: https://github.com/AFNetworking/AFNetworking/issues/2119 |
At the moment we're firing a call to our servers from the app extension which then will manually ping Mixpanel server-side, but would be much nicer to do natively. Looking forward to a solution, thanks! |
It is actually possible to use Mixpanel inside an extension with Cocoapods presently, in case that helps anyone. |
@alex-hofsteede Just wondering if there were any updates on this one? |
@barfoon Sorry I haven't had the time to work on this one yet. Will update when I do. |
+1 while it is possible to use Mixpanel inside of an extension, Mixpanel does not properly send events making it useless for my use case. Note that I'm referencing a custom keyboard extension, and having added MIXPANEL_DEBUG/MIXPANEL_LOG to the preprocessor, it appears that Mixpanel falsely views its state as offline and queues / archives all events instead of reporting them. Here's a gist with verbose mixpanel output showing the issue (note that this is on a device with full connectivity). |
@fisch0920 I'm seeing the exact same thing. Manually calling 'flush' seems to work for me. Does doing that have any serious downside? |
@alex-hofsteede - Hello, are there any updates to this? |
Looks like it's fixed in v2.8.0. https://github.com/mixpanel/mixpanel-iphone/releases/tag/v2.8.0 |
yep use |
nice 👌 |
This thread is outdated. |
If so, how? Currently there are many referenecs to [UIApplication sharedApplication], which is not accessible in application extensions.
Thanks,
The text was updated successfully, but these errors were encountered: