Question

[iOS] Push notification candlers invoking twice


Badge

Good day. I'm developing ios application and decided to use your SDK. I added Mixpanel SDK as described in your references.
Everything is working fine, I can track events. But I've found one bug.
My app uses iOS Push notifications - and when Mixpanel SDK enabled - push callback invoke twice.

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {

Notice: app uses push notification only from dedicated backed, no any other pushes for now.

If I disabling Mixpanel SDK - it working fine.

I see in backtrace that your SDK uses swizzling for this callback - maybe issues contains here - I don't know. Can you please help me to resolve this issue?

Thanks, Alexey



2 replies

Userlevel 3
Badge

@a.kolmyk A similar question was posted here: https://community.mixpanel.com/questions/1766/ios-push-callback-is-invoked-twice.html


Does the solution I posted in that thread work apply to your use-case?


Badge

Actually this is one same question.. provided info in that thread


Reply