smartlook / cordova-smartlook

Official Smartlook SDK plugin for Cordova Android and iOS.
https://www.smartlook.com
MIT License
9 stars 6 forks source link

Custom Navigation Event is not being detected on Ionic #54

Closed timonjagi closed 1 year ago

timonjagi commented 1 year ago

I'm implementing Smartlook on an Ionic v6 project using this.smartlook.trackNavigationEvent to track screen transitions, but when I define a new event on the dashboard, the events are not being detected.

I'm defining the event as a ''Visited Screen" event with screen_name being the name passed to trackNavigationEvent

I'm assuming this is the correct way to do it since the documentation on Recording Navigation says

The navigation event recorded by this method is indistinguishable from the auto-detected navigation events.

c0mtru1se commented 1 year ago

Hi! Just fyi we have released today a brand new, ground-up rewritten version 2.0 of this plugin. It uses our new, also rewritten and long-term supported 2.x+ native SDKs. Everything, including the navigation tracking, is working better and more stable in those.

We have also pushed a PR to the awesome-cordova-plugins repository. Once the PR gets merged and released, you should be able to use both those plugins in your Ionic project (Capacitor is also fully supported and tested by us internally). Please then kindly consult our docs to migrate to the v2.0 as there were some breaking changes in the API. I'll gladly be of any help if you run to any issues.

Thanks!