razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
121 stars 107 forks source link

Android app crashes after the successful payment #472

Closed siddharth9470 closed 4 months ago

siddharth9470 commented 4 months ago

Below is the exception tracked by Sentry

Unable to start receiver com.rnsmsretriever.SmsBroadcastReceiver: java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String

react-native version: 0.73.4

vivekshindhe commented 4 months ago

@siddharth9470 The class com.rnsmsretriever.SmsBroadcastReceiver is not a class from Razorpay react-native package. SMS Retreiver used by react-native-razorpay has been implemented on the Android Native side directly with the SMS retriever API and not through react-native. Closing this ticket for now. But please feel free to reopen or create another issue if you find that more details of the crash are related to the Razorpay's react-native package. Thanks.