location 相关问题

位置是物理空间中的特定位置,例如使用纬度和经度坐标描述地球表面上的一个点。该标签不应用于与虚拟元素的位置相关的问题,例如位图上的像素位置或UI上布局元素的位置(在这种情况下使用[position]标签)。

防止 iOS/Android 用户伪造 GPS 位置

我正在构建一个 Android 和 IOS 应用程序,它将使用用户的 GPS 位置。我担心用户会伪造 GPS 位置,就像我听说人们在 Uber 上做的那样。 有没有什么程序...

回答 3 投票 0

Yelp 等网站如何转换位置输入(邮政编码、地区名称、县)并使用它进行搜索?

他们在网站上提供此功能的流程或 API 是什么?如果解释起来太复杂,您可以朝正确的方向推动,以便能够提供此功能...

回答 2 投票 0

无法在本机反应中调用RNFusedLocation.getCurrentPosition null

我只收到此错误,其他人可以在他们的笔记本电脑上运行此项目 为什么我只面临这个问题? 我们一起从 git 克隆这个项目

回答 1 投票 0

追踪位置

我正在开发一个移动订购应用程序,我想为用户提供实时跟踪功能,用户可以在他/她的手机上不断检查订单的状态/位置并跟踪...

回答 3 投票 0

flutter:地理定位器不起作用,请确保清单中至少定义了 ACCESS_FINE_LOCATION 或 ACCESS_COARSE_LOCATION

我正在尝试使用地理定位器,并且我添加了两者 我正在尝试使用地理定位器,并且我添加了两者 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 到主包下的 AndroidManifest,我收到此错误:E/flutter (21706): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] 未处理的异常:清单中未定义位置权限。确保清单中至少定义了 ACCESS_FINE_LOCATION 或 ACCESS_COARSE_LOCATION。 我的清单: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="leora3y.co.el_joker"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- io.flutter.app.FlutterApplication is an android.app.Application that calls FlutterMain.startInitialization(this); in its onCreate method. In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> <application android:name="io.flutter.app.FlutterApplication" android:label="el_joker" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- Specifies an Android theme to apply to this Activity as soon as the Android process has started. This theme is visible to the user while the Flutter UI initializes. After that, this theme continues to determine the Window background behind the Flutter UI. --> <meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" /> <!-- Displays an Android View that continues showing the launch screen Drawable until Flutter paints its first frame, then this splash screen fades out. A splash screen is useful to avoid any visual gap between the end of Android's launch screen and the painting of Flutter's first frame. --> <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> </manifest> 谢谢你。 您可以尝试以下步骤来解决您的问题。 1. Sync gradle from android studio (must required step) 2. flutter clean 3. flutter pub get 4. flutter run 首先编辑您的 Android 清单文件并添加这些内容 <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 然后请求用户的位置权限,因为如果不请求他的权限,你将无法获取它。 LocationPermission 权限; 权限 = 等待 Geolocator.requestPermission(); 将上面两行添加到您创建的异步函数中 最后在终端中运行这些命令 扑扑干净 flutter 酒吧获取 颤抖奔跑 你现在可以走了。 当您向 AndroidManifest 添加权限或任何内容时,请确保重新运行应用程序。 请务必请求许可 LocationPermission permission; permission = await Geolocator.requestPermission(); 有时这种情况发生只是因为缺少互联网权限。您必须在清单文件中定义所有这些权限 <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

回答 5 投票 0

Flutter:在未使用时收听位置更新,即使在使用应用程序时设置了位置权限

如果这个问题重复,我很抱歉,但相信我,这个问题没有确定的答案:如何在应用程序最小化并设置位置权限时监听当前位置更改...

回答 1 投票 0

Android LocationClient onDisconnect 不会被调用

来自 GooglePlayServicesClient.ConnectionCallbacks 文档 onDisconnected 应该在 LocationClient 断开连接时被调用。从我的测试中我注意到如果我

回答 1 投票 0

在 Android 上获取准确的单一位置更新

对于我的应用程序,我试图仅提取一次新位置以显示附近的兴趣点。我不想提取缓存的位置,因为兴趣点是按距离顺序显示的

回答 1 投票 0

iOS是否可以在未经许可的情况下获取用户的大概位置?

您建议如何在未经用户许可的情况下获取用户所在国家/地区? 是否可以使用手机信号塔三角测量或 WiFi 定位来获得大概位置? 你还有什么办法

回答 2 投票 0

Service.startForeground() 不允许,因为 Android 14 上的 mAllowStartForeground false

自 Android 14 起,我的应用程序出现此错误。我通过尝试在设备关闭电源(仅屏幕)时从 android Studio 启动应用程序来成功重现该错误。 这是我的代码的描述: 我

回答 1 投票 0

如何获取WiFi SSID信息?

我记得在 Xcode 14 上使用此代码(打印设备连接的 WIFI 的 SSID)没有问题: 进口基金会 导入系统配置.CaptiveNetwork 导入网络扩展...

回答 1 投票 0

信号强度中的负dbm是什么意思?

当我们尝试获取附近的小区及其 LAC、MNC、信号(以及使用其他 Android 应用程序时)时,我们得到的信号为负值(例如 -85dbm)。我该如何接受这个?我应该忽略 -ve s...

回答 4 投票 0

vue 仅刷新页面一次

是否可以在创建或安装页面或类似的情况下重新加载页面? 让我解释一下,我希望加载页面时,我们必须激活 location.reload();但如果我在 cr 上这样做...

回答 2 投票 0

如何将地图位置(lat,lng)对转换为mapbox中的屏幕位置(x,y)对

我正在使用mapbox javascript API 在地图上做一些很酷的事情。现在我有一个地图位置(纬度,经度)对,我想将视图设置到这个位置,然后使用javascript来模拟c...

回答 1 投票 0

GeoFire 包的问题:寻求基于查询的位置更新的替代方案

我在应用程序中使用 GeoFire 包进行位置跟踪时遇到了问题。尽管它的功能很有前途,但我还是遇到了包的 GitHub 页面上记录的问题(#267、#266)。 ...

回答 1 投票 0

startLocationUpdatesAsync 不适用于后台反应原生博览会

我试图在应用程序位于后台时跟踪我的用户位置,它在前台运行良好,即使我添加了前台服务参数,也不会显示通知...

回答 2 投票 0

IOS 拒绝世博位置追踪

我尝试在 IOS 上跟踪用户位置,但总是被拒绝。我已在 app.json 文件中添加了所有必要的依赖项,但我不断收到相同的错误消息: [未处理

回答 2 投票 0

SPLUNK:如何使用 SERVERNAME 列表按位置对事件进行计数?

我们的splunk实现有SERVERNAME作为预设字段,并且有位于不同位置的服务器,但没有位置字段。如何按位置统计错误? 我设想了一些事情...

回答 1 投票 0

请求位置更新的时间间隔未在前台服务中获取位置更新?

我创建了一个前台服务来每 1 分钟获取一次位置,但不知何故,该服务在一分钟后就不再获取位置了。 我正在奥利奥背景之前创建一项服务...

回答 2 投票 0

如何使用CLLocationManager-Swift获取当前经纬度

我想使用 Swift 获取某个位置的当前经度和纬度,并通过标签显示它们。我尝试这样做,但标签上没有显示任何内容。 导入 UIKit 导入核心位置 班级

回答 9 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.