react-native-upi
react-native-upi copied to clipboard
No apps can perform this action.
Hello. I am developing an app with react-native-upi. I am testing multi real devices and emulator. Some devices are working fine. However, on some devices, the call to "RNUpiPayment.initializePayment" fails to list the installed UPI apps and displays the message below.
- No apps can perform this action.
- No application to perform this action
I have paytm, phonepe, google pay app installed on my test device. I don't think it's an android version issue, some devices work with version 13 and some don't. The difference is that the devices that don't list the UPI app only have the UPI app installed, not logged in.
If you know anything, please help me. Thanks. Below is the source code.
const init = () => {
try {
RNUpiPayment.initializePayment(
{
vpa: 'upi_id@ybl',
payeeName: 'my payee name',
amount: '1',
transactionRef: 'aasf-332-aoei-fn',
transactionNote: 'for food',
},
successCallback,
failureCallback,
);
} catch (e) {
console.error('Error:', e);
}
};
function successCallback(data) {
// do whatever with the data
console.log('success', data);
}
function failureCallback(data) {
// do whatever with the data
console.log('error', data);
}
in my device working fine with paytm,... other apps not working like google pay
I am also facing same error.