pendo-mobile-sdk
pendo-mobile-sdk copied to clipboard
Pendo native plugin is not available on test
Platform + Version e.g IOS 16, Android
SDK Version "rn-pendo-sdk": "^2.22.3",
Framework Expo using React Navigation,
Describe the bug This message appears on Jest logs whenever the rn-pendo-sdk is loaded
console.info [rn-pendo-sdk] Pendo native plugin is not available. Ignoring Call. Please note that if you are using Expo, Expo Go is not supported by Pendo because Pendo SDK has a native plugin that is not part of the Expo Go app.
I am thinking that this message should only be generated when PendoSDK.setup is actually called and not as a side effect of module load.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Logs
If applicable, please add crash logs OR pendo logs (can be turned on with PendoManager.shared().setDebugMode(true))
Sample Code Code snippet or Sample project
Additional context Add any other context about the problem here.
It means that the plugin can't find the native module. Can you make sure that the native module is there? (We dont support the Expo GO app). We have mentioned it in our docs under the limitation section:
Note that Expo Go is not supported by Pendo because Pendo SDK has a native plugin that is not part of the Expo Go app. Pendo can be used in development builds only. You can read more about development builds [Adding custom native code with development builds](https://docs.expo.dev/workflow/customizing/)
@trajano Please let us know if our previous comment resolve the issue
No @MikePendo Ideally it shouldn't find the native module because it is running in a Jest test. Sentry at least doesn't put noise on the logs even though it knows it is not working.
@trajano My apologizes we usually see this error in situations when people use GO app. So I have mistakenly associated your issue with that one
@trajano
So unfortunately its under the info log and I dont see any suggestion that can allow us to silent it currently.
Would it be possible for you to mock it?
@trajano
We have opened and internal ticket on our side to provide an option to set loging level api. (Unfortunately I cant promise any deadlines when it will be resolved)
closed by mistake
@trajano our next release (3.3) will decrease the logging significantly (only calls to Pendo API will add a log)