简体   繁体   English

如何创建我的应用程序链接以在 iOS Swift 的浏览器中打开

[英]How to create my app link to open in browser in iOS Swift

I need to open my app when we click on skip this form button which is in stripe page... here if i got app link then my backend team will add that link but.. how to make my app link当我们单击跳过此表单按钮时,我需要打开我的应用程序,该按钮位于条纹页面中...如果我有应用程序链接,那么我的后端团队将添加该链接但是..如何制作我的应用程序链接

how to create my project app link in ios swift to share backend team to open in browser.如何在 ios swift 中创建我的项目应用程序链接以共享后端团队以在浏览器中打开。 please guide me请指导我

在此处输入图像描述

First of all to launch your application you should have an URLScheme defined for your application:首先要启动您的应用程序,您应该为您的应用程序定义一个 URLScheme:

Please check out this Apple's official documentation to understand how it's done.请查看这个 Apple 的官方文档以了解它是如何完成的。

Secondly, in your case to your launch on tapping Skip this form you have to open the URL Scheme defined for your app.其次,在您点击Skip this form时,您必须打开为您的应用定义的 URL 方案。

For eg.例如。 IF the URLScheme for the app is defined as myStripeApp如果应用程序的 URLScheme 定义为myStripeApp

The action on the page should be trigger something like below页面上的操作应触发如下所示

<a href= myStripeApp://>Open my Stripe App</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM