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

Push Notification open event tracking iOS #181

Open
2 tasks done
SiluntKnight opened this issue Oct 25, 2024 · 3 comments
Open
2 tasks done

Push Notification open event tracking iOS #181

SiluntKnight opened this issue Oct 25, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@SiluntKnight
Copy link

Checklist

Description

I am trying to track open events for push notifications on our React Native app, I have followed the instructions for Android and that appears to work fine, however for iOS all our native code is written in Objective-C and I believe this to be the case for all RN apps. I can't see a clear example of how we can track these events as the native code for the Klaviyo SDK on iOS is written in Swift. I am missing something here?

Proposed Solution

Provide examples of how you can track events natively through React Native and iOS as suggested is the case in the docs instead of referring to a solely native Swift approach.

Alternatives Considered

No response

Additional Context

No response

@SiluntKnight SiluntKnight added the enhancement New feature or request label Oct 25, 2024
@ndurell
Copy link

ndurell commented Oct 28, 2024

Hey there!
Sorry for the late response and for the lack of clear documentation on this.
We have an example app in this repo. If you don't mind bridging your objective-c code over to our swift you can use this class in our example app. For handling an open push event look at the function handleReceivingPush.
Let me know if this helps or if you need more info.

Thanks,
Noah

@SiluntKnight
Copy link
Author

Hi @ndurell thanks for getting back to me, I'm totally new to this - I'll take a look at bridging, thanks for the example that should get me on my way!

@ndurell
Copy link

ndurell commented Nov 13, 2024

Awesome, hopefully it's not too much of a pain. Hoping in the future we can the integration a bit easier so it doesn't require this.

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

No branches or pull requests

2 participants