admin管理员组文章数量:1399509
Hello I'm having some issue opening a URL to a browser outside the app, the error is only being reported on the MDM devices, locally they work fine
Link is being opened as follows:
guard let url = URL(string: ";) else { return }
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)
}
The following has also been added to info.plist under "Queried URL Schemes"
https
, http
, googlechrome
, googlechromes
Users are reporting when interacting with the button, it's not doing anything
A different app in the same MDM device, opens the same link without any issues, this other app is on React-native though, and uses the following code:
<Button
className="w-100 p-3 mt-3 text-start"
onClick={() => window.open(item.link, "_blank","noopener,noreferrer")}
>
The expected functionality on both is that the default browser of the device (which is always set to Chrome) opens the link, however as stated, it works on my non managed device flawlessly, but users report that the Swift won't respond at all (seen it live with screen share), but the React-Native app works fine.
本文标签: iosHow can a url not open in a native app but open in a reactnative appStack Overflow
版权声明:本文标题:ios - How can a url not open in a native app but open in a react-native app? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744127631a2592029.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论