Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.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
Android 从浏览器打开意图url_Android_Android Intent - Fatal编程技术网

Android 从浏览器打开意图url

Android 从浏览器打开意图url,android,android-intent,Android,Android Intent,我有一个移动设备使用的asp经典站点(Android和iOS),它通过javascript调用Intent来调用本机应用程序。有时它可以工作,但有时它无法打开应用程序。在iOS中,它一直工作。这个电话就像 appNativeName://sign?fileid=yyyyyyy&rtservlet=serverUrl&key=xxxxx Android是否对AndroidManufest.xml中的意图URL进行了此类控制或验证?为要从浏览器意图过滤器中打开的活动设置: &

我有一个移动设备使用的asp经典站点(
Android
iOS
),它通过javascript调用Intent来调用本机应用程序。有时它可以工作,但有时它无法打开应用程序。在iOS中,它一直工作。这个电话就像

appNativeName://sign?fileid=yyyyyyy&rtservlet=serverUrl&key=xxxxx

Android是否对AndroidManufest.xml中的意图URL进行了此类控制或验证?为要从浏览器意图过滤器中打开的活动设置:

   <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="yourscheme"/>
    </intent-filter>
然后,您可以在web上调用类似以下内容:
yourscheme://something_you_need

An intent URI has the following layout (all optional - heh!)

intent:
   HOST/URI-path // Optional host 
   #Intent; 
      package=[string]; 
      action=[string]; 
      category=[string]; 
      component=[string]; 
      scheme=[string]; 
      type=[string]
      S.*=[string];
   end; 

Link : https://paul.kinlan.me/every-browser-should-support-intent-urls/


使用此链接。

好吧,问题不在于我调用意图的方式,问题在于浏览器。除了旧的mozilla版本外,它在桌面版本和所有浏览器下都能完美工作。 当通过移动设备访问时,问题只发生在我前面提到的android设备上,解决方案是使用“Opera”浏览器,因为它没有发送数据的限制。我的应用程序发送Base64数据,所以Chrome和三星浏览器在发送超过3MB的数据时给了我错误。我也尝试过在android上使用mozilla,但它有一个很大的问题,那就是不能安装用户证书(太遗憾了!),所以最后使用Opera时,所有过程都可以正常工作:)

希望这能帮助其他像我一样在it领域战斗的人;)

An intent URI has the following layout (all optional - heh!)

intent:
   HOST/URI-path // Optional host 
   #Intent; 
      package=[string]; 
      action=[string]; 
      category=[string]; 
      component=[string]; 
      scheme=[string]; 
      type=[string]
      S.*=[string];
   end; 

Link : https://paul.kinlan.me/every-browser-should-support-intent-urls/