Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/97.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从本机iOS和Android应用程序启动到系统外移动应用程序的特定屏幕_Android_Ios_Outsystems - Fatal编程技术网

从本机iOS和Android应用程序启动到系统外移动应用程序的特定屏幕

从本机iOS和Android应用程序启动到系统外移动应用程序的特定屏幕,android,ios,outsystems,Android,Ios,Outsystems,我是Outsystems的新手,我们遇到了一个场景,我们想从我们的本地iOS和Android应用程序启动Outsystems移动应用程序的特定屏幕 我们已经使用corodova插件为Outsystems移动应用程序添加了URL方案。还将LSApplicationQueriesSchemes添加到我的本机iOS应用程序中。Android应用程序仍在开发中 Outsystems应用程序正在从本机iOS应用程序启动,但我们需要将其启动到特定屏幕。我们在Outsystems应用程序中有一个登录页面,我们

我是Outsystems的新手,我们遇到了一个场景,我们想从我们的本地iOS和Android应用程序启动Outsystems移动应用程序的特定屏幕

我们已经使用corodova插件为Outsystems移动应用程序添加了URL方案。还将
LSApplicationQueriesSchemes
添加到我的本机iOS应用程序中。Android应用程序仍在开发中

Outsystems应用程序正在从本机iOS应用程序启动,但我们需要将其启动到特定屏幕。我们在Outsystems应用程序中有一个登录页面,我们需要绕过它

我假设outsystems应用程序必须在URL或深度链接上工作,但看起来情况并非如此

你们能帮帮我吗??即使是一个模糊的想法也会有所帮助

适用于需要本机代码(Kotlin)来启动Outsystems应用程序的Android开发人员

val packageName = "in.co.companyname.appname"
            val context = getActivity()
            val pm = context!!.packageManager

            val myAction = Uri.parse("in.co.companyname.appname://Module/Screen?parameter1=para1&parameter2=para2")
            // Initialize a new Intent
            val intent: Intent? = pm.getLaunchIntentForPackage(packageName)
            if(intent!=null){
                intent!!.setAction(Intent.ACTION_VIEW)
                intent!!.setData(myAction)
                context!!.startActivity(intent)
            }else{
                Toast.makeText(activity!!, "Please install the App", Toast.LENGTH_SHORT).show()
            }
适用于iOS开发者

UIApplication.shared.open(URL.init(string: "in.co.companyname.appname://Module/Screen?parameter1=para1&parameter2=para2")!, options: [:], completionHandler: nil)
应该有帮助…我已经用Android进行了测试,并且能够成功地构建深层链接并将它们编码到NFC标签中

短版本:深链接使用以下语法构造:

<app-identifier>://<module>/<screen>
:///
其中app identifier是应用程序的本机应用程序标识符,module和screen是要使用深度链接打开的模块和屏幕名称


由于我手头没有iOS设备,因此无法在iOS上进行专门测试。

这里只给我2美分:如果语法中包含参数(如果适用的话),这将非常有用。我还要指出这个问题的摘录:“我们在Outsystems应用程序中有一个登录页面,我们需要绕过它。”这意味着目标页面应该标记为匿名可访问,否则登录页面将始终显示。