V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
beginor
V2EX  ›  macOS

Google Chrome 无法使用 Mac 的位置服务?

  •  
  •   beginor · 256 天前 · 929 次点击
    这是一个创建于 256 天前的主题,其中的信息可能已经有所发展或是发生改变。

    做 H5 要用到 GeoLocation , 才返现 Google Chrome 无法使用 Mac 的位置服务, 不管怎么操作,Chrome 都是提示 Location is turned off in Mac System Preference , 在 Mac 的系统设置的位置服务 (Location Services) 下面的应用列表中找不到 Google Chrome ,也没办法手工添加 Chrome 进去。

    我看到网上别人的截图, 位置服务中是有 Google Chrome 的。

    各位大神, 有办法解决么?

    电脑是 Mac M1 , macOS Ventura 13.4 , 刚刚更新到了 Google Chrome 116 .

    不管是系统自带的 Safari , 还是 App Store 安装应用 , 还是手动安装的第三方应用,甚至是 PlayCover 运行的 iOS 应用, 都可以使用位置服务, 偏偏 Google Chrome 不能, 真是郁闷。

    9 条回复    2023-08-19 20:16:58 +08:00
    imTerry
        1
    imTerry  
       256 天前
    macOS13.5 好像都有这个 bug
    virgo
        2
    virgo  
       256 天前
    Mac Chrome 之前的版本好像就是这样 有时候隐私模式可以,但大部分时候都不行,只能用 Safari 调试
    SimonOne
        3
    SimonOne  
       256 天前
    di11wei
        4
    di11wei  
       256 天前
    今天的 13.5.1 好像解决了这个问题
    beginor
        5
    beginor  
    OP
       256 天前
    @SimonOne 编辑了, 加了个 Chromium 进去, 不会再提示位置服务已关闭了, 但是列表里面还是看不到 Chromium 。
    beginor
        6
    beginor  
    OP
       256 天前
    @di11wei 看了 13.5.1 的更新说明

    ```
    macOS Ventura 13.5.1 fixes an issue in System Settings that prevents location permissions from appearing.
    ```

    我更新再试试看。
    beginor
        7
    beginor  
    OP
       256 天前
    @di11wei 已经更新, 但是问题依旧。
    crazyTanuki
        8
    crazyTanuki  
       256 天前
    我遇到过这个问题,后面经过几个主流的浏览器分析,是因为浏览器对位置服务权限策略不一样,有些会拦截有些不会,你可以尝试一下换 edge 或者 firefox 开发调试
    shenyuzhi
        9
    shenyuzhi  
       254 天前
    开发者工具里可以模拟位置,前端开发应该够用了。至于浏览器自己能不能获取到位置,前端也管不到。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2894 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:44 · PVG 18:44 · LAX 03:44 · JFK 06:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.