location 相关问题

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

发布应用上的模拟位置权限问题

我开发了假GPS应用程序,我的所有代码在调试模式下都运行良好。 当我在 **发布版本** 上尝试“模拟位置”时,出现此错误; java.lang.SecurityException:需要`

回答 1 投票 0

获取“BigQuery 适配器:404 未找到:在位置 EU 中未找到数据集 `PROJECT_ID:`DATASET_ID`。如何更改 dbt Cloud 中的数据集位置?

我希望 dbt Cloud 不要查找 BigQuery 数据集/表,我要求它在美国位置查询,而是在欧盟位置查询。在 dbt Cloud 中如何以及在何处配置此功能?我看没有机会...

回答 1 投票 0

如何在lua中获取当前nginx/openresty位置的路径?

我有这个位置块: 位置/某处/ { access_by_lua_file /path/to/file.lua; add_header X-debug-message“使用位置:/某处/”总是; ... } 我会...

回答 1 投票 0

没有哈希值的javascript窗口位置href?

我有: var uri = window.location.href; 这提供了http://example.com/something#hash 在没有 #hash 的情况下获取整个路径的最佳和最简单的方法是什么? uri = http://example.com/som...

回答 10 投票 0

GPS 追踪的前台服务在一段时间后停止工作

背景: 我们有一个应用程序可以为一群人进行时间登记。在此示例中,我们使用 Zebra TC26(型号:TC26BK-11A222-A6),并通过扫描对多人进行打卡。 接下来是应用程序

回答 2 投票 0

如何将我的营业地点添加到 HERE 平台?

我正在尝试在 HERE 平台中添加我的营业地点,以便在线订购时搜索时找到我的营业地点。

回答 1 投票 0

显示弹出通知以获取位置并禁用电池优化权限

我想在 flutter 项目中显示一些弹出窗口,以在每次打开应用程序时获取位置并禁用电池优化。 是否可以在不使用任何升降机的情况下从第一秒开始显示弹出窗口...

回答 1 投票 0

使用expo实时后台定位 - React Native

我有一个应用程序,我需要跟踪车辆,为此,我有一个使用expo的反应本机应用程序,但我很难在后台跟踪车辆(同时......

回答 1 投票 0

将表从美国数据集移动到欧盟数据集

我在位于美国的 Google Cloud Platform(和 Bigquery)上创建了一些项目。现在我只想在欧盟创建数据集。有什么方法可以将这些表从美国数据集复制到欧盟

回答 6 投票 0

如何在每次打开应用程序时询问用户位置

我正在制作一个 kotlin 应用程序,用于显示用户附近正在进行的道路施工。我目前正在尝试通过弹出窗口确定用户位置并将其显示在地图上。当我第一次实现这个我...

回答 1 投票 0

使用 Kotlin 获取当前 GPS 位置(仅一次)

我希望我的 Kotlin 应用程序仅在用户请求时获取当前准确的(GPS)位置一次。 到目前为止,我一直在使用 fusedLocationClient.lastLocation。这通常是成功的......

回答 2 投票 0

对于 SceneDelegate,LaunchOptions 始终为零

我已经调查了重要位置。 我想在不运行应用程序时获取位置信息。 https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/

回答 2 投票 0

使用位置 Flutter 获取平板设备的错误位置

尝试获取当前位置,但在平板电脑设备上得到不正确的结果,它在移动设备上工作正常。 对于平板电脑,它没有显示任何错误。 移动设备的结果:18.565...

回答 1 投票 0

IP 和位置信息

我已经搜索了我网站的 IP 和位置。我想知道我的访问者进入网站的位置。根据他的位置我会做一些录音,以不同的方式显示网站...

回答 4 投票 0

使用“import android.location.*;”的Android应用程序位置

我会制作一个应用程序来告诉我我所在的纬度和经度。 我完全遵循了这个(https://developer.android.com/guide/topics/location/strategies.html#BestPerformance),但最后一行

回答 2 投票 0

防止 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

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