dynamitechetan / razorpay_flutter

A flutter plugin for integrating razorpay payment gateway. Supports Android and iOS.
Other
31 stars 16 forks source link

Can't get it to work on iOS #6

Closed kbrmimbyl closed 5 years ago

kbrmimbyl commented 5 years ago

Hi, I have use_frameworks! in my pod file but it crashes on iOS. When I try to launch the Razorpay payment screen, it says the following (repeat 4-5 times) and the app crashes:

 "signalStrengthChanged:info:",
    "cellChanged:cell:",
    "connectionStateChanged:connection:dataConnectionStatusInfo:",
    "carrierBundleChange:"
)

I'm running Xcode 10.1 and I've set the target iOS version to 10.0.

Note: it works fine on Android.

Is there anything else I need to do to get it to work on iOS?

Note: I'm opening a new issue since this one is closed: #1

EDIT: I tried to run the example app, and THAT WORKS! My pod file is exactly the same as the podfile in this repository, but the plugin doesn't work in my app :-(...

kbrmimbyl commented 5 years ago

Damn! It was a very simple error from my end... I was not passing the "contact" parameter. Figured it out by debugging from Xcode... Flutter didn't throw any error... the issue was that the iOS version needs the contact parameter to be set (even if it's set to "", it's fine)... whereas the Android version doesn't need it. That's why it wasn't working on iOS. Now it's working fine.