【问题标题】:Issue with html Geo locationhtml地理位置问题
【发布时间】:2020-05-25 10:03:00
【问题描述】:

我在 html 中遇到了一些地理位置问题。

我正在开发一个 android 应用程序,其中一个页面是 webview 这个页面加载了我创建的 url。

问题是:它要求允许位置但如何设置它总是允许的?

因为这在 Android 应用程序中是不可能请求的。

这是代码:

<iframe id="map_iframe" style="border:none; margin:0px; padding:0px; width:100%; height:150%;" src="https://url.com" allow="geolocation; microphone; camera; midi *; marginheight="0" marginwidth="0" frameborder="0" border="0"></iframe>

【问题讨论】:

  • 嘿丹尼斯。欢迎来到堆栈溢出。 “这是代码:”后面没有代码。该代码可以帮助您获得答案。请添加。
  • 嗨,是的,代码在那里:)
  • 我编辑了它,这就是你现在看到代码的原因:)

标签: android html geolocation


【解决方案1】:

我在 html 中遇到了一些地理位置问题。

我正在开发一个 Android 应用程序,其中一个页面是 webview 这个页面加载了我创建的 url。

问题是:它要求允许位置但如何设置它总是允许?

因为这在 Android 应用程序中是不可能请求的。

这是代码:

style="border:none; margin:0px; padding:0px; width:100%; height:150%;" src="https://url.com" allow="geolocation; 麦克风; 摄像头; midi *; marginheight="0" marginwidth="0" frameborder="0" border="0">

【讨论】:

  • 请删除这个重复的答案
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-04-09
  • 2020-10-29
  • 1970-01-01
  • 1970-01-01
  • 2017-07-07
  • 2015-04-19
  • 1970-01-01
相关资源
最近更新 更多