Skip to content
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

Application: UIApplication, continue userActivity called twice when autoTrackPushEvents is set to true #715

Closed
dandreiolteanu opened this issue May 17, 2024 · 2 comments

Comments

@dandreiolteanu
Copy link

dandreiolteanu commented May 17, 2024

SDK version: 3.2.0

Environment: Development + Production

Describe the bug

Letting Customer.io to handle deeplinks while also having autoTrackPushEvents set tot true will cause the continue userActivity method from AppDelegate to be called twice. I think that it happens due to swizzling and you call handleDeeplink from 2 places ⬇️

CleanShot 2024-05-17 at 19 21 12@2x
CleanShot 2024-05-17 at 19 20 38@2x

Expected behavior

the continue userActivity method from AppDelegate should be called only once.

Thanks!

@levibostian
Copy link
Member

Hello there, Andrei. Thanks for contacting us today.

Could you give describe your code up to the point where these breakpoints are being triggered? Code snippets are ideal to share.

The onPushAction function is meant to be called automatically when the autoTrackPushEvents config option is true. the manualPushClick function is meant to be called when your app manually calls MessagingPush.userNotificationCenter(didReceive:).

Could you check your code to see if you're calling MessagingPush.userNotificationCenter(didReceive:)? If so, you can go ahead and delete that code as mentioned here.

Have a great day!

@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
@levibostian
Copy link
Member

Closing issue due to inactivity.

Feel free to add new comments and we would be happy to re-open and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants