• 请不要在回答技术问题时复制粘贴 AI 生成的内容
594mantou
V2EX  ›  程序员

能动态的配置 App 能处理的 URL 吗?

  •  
  •   594mantou ·
    mantou132 · Jun 21, 2020 via iPhone · 2225 views
    This topic created in 2199 days ago, the information mentioned may be changed or developed.

    例如在 App 里面明确设置能接收哪些网站

    Windows macOS Android iOS,有允许这么做的系统吗?方法是咋样的

    7 replies    2020-06-23 22:35:42 +08:00
    xiaoming1992
        1
    xiaoming1992  
       Jun 21, 2020 via Android
    你是要做收音机吗?还能接收网站?
    shellus
        2
    shellus  
       Jun 22, 2020
    https://www.jianshu.com/p/57f79fc83233
    你说的是 curl scheme 吗?
    hhhfffhhh
        3
    hhhfffhhh  
       Jun 22, 2020
    app 自动更新白名单 黑名单列表
    app 内只能只有白名单内的能跳转或下载来自这个站点的数据 是这个意思吗?
    yanqiyu
        4
    yanqiyu  
       Jun 22, 2020 via Android
    分别注册到不同的 activity 然后启用禁用?
    我猜的,没实验
    594mantou
        5
    594mantou  
    OP
       Jun 23, 2020 via iPhone
    @xiaoming1992 意思是打开那个网站是能唤起 app 打开。 我现在的问题就是这个配置能不能动态改。
    594mantou
        6
    594mantou  
    OP
       Jun 23, 2020 via iPhone
    @shellus 是这个。只不过不同系统有不同的做法。行为都是一样,就是打开链接会跳转到 app 。 我现在想知道的就是 app 能不能动态配置自己能处理的 URL
    xiaoming1992
        7
    xiaoming1992  
       Jun 23, 2020 via Android
    @594mantou 懂了,是我捞了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5527 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 86ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    ♥ Do have faith in what you're doing.