pendo-io / pendo-mobile-sdk

Pendo captures product usage data, gathers user feedback, and lets you communicate in-app to onboard, educate, and guide users to value
https://www.pendo.io
Other
57 stars 2 forks source link

sendClickAnalytics method does not exist #169

Closed Joels-code closed 1 week ago

Joels-code commented 2 weeks ago

Platform + Version iOS and Android

SDK Version 3.3.2

Framework React Native using React Navigation

Describe the bug The API's documentation mentions a sendClickAnalytics method. However, trying to call this method results in an error. I can see in the node_modules rn-pendo-sdk pkg that it is not an exported method in the index.d.ts file.

To Reproduce Steps to reproduce the behavior:

  1. import PendoSDK from package
  2. Attempt to call sendClickAnalytics

Expected behavior The method is available for use as described in the API documentation.

Sample Code Screenshot 2024-08-28 at 11 04 51 AM

MikePendo commented 2 weeks ago

yes we forgot to export it unfortunately we will fix in next release

randmaayan commented 2 weeks ago

hi @Joels-code - we did forget to add it to the declaration file, so it's it not found by auto-complete.

please try typing it out and running the app. to clarify, the API's name is sendClickAnalytic and not sendClickAnalytics

As Michael said, we will also add it to the declaration file in our next release for easier use.

Joels-code commented 2 weeks ago

@randmaayan Could you please update the api docs too? I see now that the method is sendClickAnalytic, but it's listed as sendClickAnalytics here.

randmaayan commented 1 week ago

@Joels-code done. thanks!