Issue
I want to filter native events (from Android, iOS, or Native) in my React Native SDK application.
Applies To
- All SaaS Customers
- Error Monitoring
- React Native SDK
Resolution
The beforeSend and other filters set on the JavaScript layer do not filter events from the Java, iOS and native layers.
To solve it, manually initialise the Native SDK with its own filters. Here are the steps:
- Follow the steps on this page to disable auto native initialisation.
- Follow the platform specific filtering guides to filter unwanted events: