razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
107 stars 147 forks source link

Are you missing a call to unregisterReceiver()? #311

Open dharambudh1 opened 1 year ago

dharambudh1 commented 1 year ago

I am getting the below-mentioned error just after the payment window.

alt text

I'm pretty sure I've integrated the package very well. I've gone through the official documentation carefully & I've read every instruction.

By reading the error, I can say that maybe the original author accidentally forgot to unregister the receiver. And it seems like the "CheckoutActivity" got messed up.

Error: E/ActivityThread( 5926): Activity com.razorpay.CheckoutActivity has leaked IntentReceiver com.razorpay.b_J@b7e685 that was originally registered here. Are you missing a call to unregisterReceiver()?

E/ActivityThread( 5926): android.app.IntentReceiverLeaked: Activity com.razorpay.CheckoutActivity has leaked IntentReceiver com.razorpay.b_J@b7e685 that was originally registered here. Are you missing a call to unregisterReceiver()?

Flutter Version: Flutter (Channel stable, 3.7.0, on macOS 13.3 22E252 darwin-arm64, locale en-IN)

Plugin Version: razorpay_flutter: ^1.3.4

punitsamcom84 commented 1 year ago

sam issue in razorpay_flutter: 1.3.5

sumittiware commented 10 months ago

I have recently faced the issue with the razorpay_flutter where after completing the payment through UPI, I was getting the android's consent api pop up as I receive the payment confirmation message from.

Can this be a related issue, because this is only happening with the razorpay payments, In app purchase through the GPay is working fine.

Please check the attacked image.

WhatsApp Image 2023-10-17 at 10 15 59 PM