You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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!
Checklist
Description
Proposed Solution
Alternatives Considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: