React native React Native-Android-processintent

React native React Native-Android-processintent,react-native,React Native,我正在尝试在我的react原生应用程序中处理一个意图URL,以触发Square移动应用程序中的付款 在web浏览器中,我可以使用以下链接: intent:#Intent;action=com.squareup.register.action.CHARGE;package=com.squareup;S.com.squareup.register.WEB_CALLBACK_URI=...;end 但是,如果我将其添加到Linking.OpenURL,我会在react本机应用程序中得到一个失败的承诺

我正在尝试在我的react原生应用程序中处理一个意图URL,以触发Square移动应用程序中的付款

在web浏览器中,我可以使用以下链接:

intent:#Intent;action=com.squareup.register.action.CHARGE;package=com.squareup;S.com.squareup.register.WEB_CALLBACK_URI=...;end
但是,如果我将其添加到Linking.OpenURL,我会在react本机应用程序中得到一个失败的承诺


关于如何使其工作,您有什么想法吗?

文档中的示例使用“”。您应该将其替换为站点中的有效回调URI,并确保在Square developer portal的“注册API”选项卡下注册它


您还需要将示例com.squareup.register.CLIENT_ID Intent extra替换为来自开发人员门户的Square分配的应用程序ID。

检查此问题我有所有有效选项,但它仍然不起作用。意图URL未通过承诺检查,相同的URL在Android web浏览器中运行良好,只是不使用Linking.OpenURL