The code bellow is supposed to send an user to the mercado pago app, it is working well on IOS, but it is not working on android, I have the app installed and I do not understand why it is happening, can you help me?
The error I am getting is:
Could not open URL 'intent://mercadopago://app#Intent;scheme=mercadopago;package=com.mercadopago;end': No Activity found to handle Intent { act=android.intent.action.VIEW dat=intent://mercadopago://app flg=0x10000000 }
<Card
style={styles.card}
onPress={() => {
if (Platform.OS === "ios") {
Linking.openURL("mercadopago://app").catch((err) => {
Linking.openURL(
"https://apps.apple.com/br/app/mercado-pago/id925436649"
);
});
} else {
Linking.openURL("mercadopago://app").catch((err) => {
console.log(err)
Linking.openURL(
"https://play.google.com/store/apps/details?id=com.mercadopago.wallet&hl=pt_BR"
);
});
}
}}
>
User contributions licensed under CC BY-SA 3.0