草庐IT

PERMISSIONS

全部标签

ios - 在我的项目 ios 和 android 中使用 simple_permissions 时出现问题

当我将包添加到pubspec.yaml时出现此错误Launchinglib/main.dartoniPhone7Plusindebugmode...Xcodebuilddone.2.6sFailedtobuildiOSappErroroutputfromXcodebuild:↳**BUILDFAILED**Xcode'soutput:↳===BUILDTARGETurl_launcherOFPROJECTPodsWITHCONFIGURATIONDebug===/Users/zimbronapps/flutter/.pub-cache/hosted/pub.dartlang.org/s

ios - 在我的项目 ios 和 android 中使用 simple_permissions 时出现问题

当我将包添加到pubspec.yaml时出现此错误Launchinglib/main.dartoniPhone7Plusindebugmode...Xcodebuilddone.2.6sFailedtobuildiOSappErroroutputfromXcodebuild:↳**BUILDFAILED**Xcode'soutput:↳===BUILDTARGETurl_launcherOFPROJECTPodsWITHCONFIGURATIONDebug===/Users/zimbronapps/flutter/.pub-cache/hosted/pub.dartlang.org/s

android - Flutter - Android 不请求权限

我正在尝试使用插件location获取设备的当前位置但Android从不要求权限。我收到此错误:Exceptionhasoccurred.PlatformException(PlatformException(PERMISSION_DENIED_NEVER_ASK,Locationpermissiondeniedforever-pleaseopenappsettings,null))我在我能在Android文件夹中找到的每个“AndroidManifest.xml”文件中添加了下面这行(实际上我不知道应该使用哪一个,我找到了其中的3个)我试过插件permission_handler手动

android - Flutter - Android 不请求权限

我正在尝试使用插件location获取设备的当前位置但Android从不要求权限。我收到此错误:Exceptionhasoccurred.PlatformException(PlatformException(PERMISSION_DENIED_NEVER_ASK,Locationpermissiondeniedforever-pleaseopenappsettings,null))我在我能在Android文件夹中找到的每个“AndroidManifest.xml”文件中添加了下面这行(实际上我不知道应该使用哪一个,我找到了其中的3个)我试过插件permission_handler手动

android - 如何解决这个 "Cannot enable MyLocation layer as location permissions are not granted"?

我在我的flutter页面中包含了一个简单的GoogleMap组件,只是为了看看它是否有效,但我无法解决这个问题。我编译应用程序,当我导航到该页面时,我在控制台中收到以下错误:"E/GoogleMapController(3376):CannotenableMyLocationlayeraslocationpermissionsarenotgranted"我可以看到组件,但看不到map(见图片):添加的配置://(AndroidManifest.xml)//(pubspec.yaml)google_maps_flutter:^0.5.0编辑-解决方案添加权限包请求权限。您可以安装此软件

android - 如何解决这个 "Cannot enable MyLocation layer as location permissions are not granted"?

我在我的flutter页面中包含了一个简单的GoogleMap组件,只是为了看看它是否有效,但我无法解决这个问题。我编译应用程序,当我导航到该页面时,我在控制台中收到以下错误:"E/GoogleMapController(3376):CannotenableMyLocationlayeraslocationpermissionsarenotgranted"我可以看到组件,但看不到map(见图片):添加的配置://(AndroidManifest.xml)//(pubspec.yaml)google_maps_flutter:^0.5.0编辑-解决方案添加权限包请求权限。您可以安装此软件

dart - 安装后,Flutter 发布的应用程序无法在设备上运行

当我调试应用程序时,一切正常,但在我执行这些命令后:fluttercleanflutterbuildapkflutterinstall安装的应用程序无法正常工作(未从API加载数据)。有什么想法吗?pubspec.yaml:name:test_appdescription:AnewFlutterproject.https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.htmlversion:1.

dart - 安装后,Flutter 发布的应用程序无法在设备上运行

当我调试应用程序时,一切正常,但在我执行这些命令后:fluttercleanflutterbuildapkflutterinstall安装的应用程序无法正常工作(未从API加载数据)。有什么想法吗?pubspec.yaml:name:test_appdescription:AnewFlutterproject.https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.htmlversion:1.

google-maps - 如何从应用程序本身启用位置跟踪权限?

我正在使用google_maps_flutter和location在我的应用程序中显示用户位置的插件。我想从我的应用程序本身启用gps权限,这看起来微不足道,但是当我尝试使用插件(如permission插件)时,我只能启用应用程序权限来访问位置,而不是gps权限。如果没有权限,我可以检查位置并toast,但我如何从应用程序本身启用它? 最佳答案 我想你想要的是打开位置设置,而不是权限,它包含在AndroidManifest.此外,如果您需要,大多数地理定位器插件都有一个请求权限方法,而不是设置。假设您希望用户打开并打开位置,在And

google-maps - 如何从应用程序本身启用位置跟踪权限?

我正在使用google_maps_flutter和location在我的应用程序中显示用户位置的插件。我想从我的应用程序本身启用gps权限,这看起来微不足道,但是当我尝试使用插件(如permission插件)时,我只能启用应用程序权限来访问位置,而不是gps权限。如果没有权限,我可以检查位置并toast,但我如何从应用程序本身启用它? 最佳答案 我想你想要的是打开位置设置,而不是权限,它包含在AndroidManifest.此外,如果您需要,大多数地理定位器插件都有一个请求权限方法,而不是设置。假设您希望用户打开并打开位置,在And