当前位置:网站首页>Flutter 教程之 Flutter 中的 HMS 定位工具包
Flutter 教程之 Flutter 中的 HMS 定位工具包
2022-08-11 11:25:00 【知识大胖】
今天的文章我将讨论HMS Location Kit在Flutter中的集成。
让我们了解一下 HMS 定位套件。
Location Kit 将全球导航卫星系统 (GNSS)、Wi-Fi 和基站定位功能结合到应用程序中,为全球用户提供灵活的基于位置的服务。
Location Kit 提供三个主要功能:
- Fused location
- Activity identification
- Geofence
要将 HMS Location Kit 集成到 Flutter 中,我们需要Location Kit Flutter Plugin。该插件提供了将HUAWEI Location Kit适配Flutter平台的代码。
要将 HMS Location Kit 集成到 Flutter 中,我们需要Location Kit Flutter Plugin。该插件提供了将HUAWEI Location Kit适配Flutter平台的代码。
整合过程
让我们在这里讨论集成步骤。
在App Gallery Connect中创建项目并提供相关信息,例如应用名称、数据存储、SHA 256 密钥、包名称等。在 Manage API 部分启用 Map Kit。下载agconnect-services.json文件。
在“ app ”目录下添加“ agconnect-services.json ”文件。
打开项目级别的“ build.gradle ”文件。
在“ buildscript ”和“ allprojects ”部分下添加 maven 存储库。在依赖部分添加类路径。
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
googl
边栏推荐
- 六、一起学习Lua 循环
- openEuler小程序会议指南
- Bitmap这个“内存刺客”你也要小心
- BAT "exclusive" Internet giant Android senior engineer interview questions: 174 questions allow you to do the interview
- C语言,怪题小谈
- 1. 类与对象——什么是对象
- 《长津湖》和《三十而已》,不及王一博赚钱?
- The ceiling-level microservice boss summed up this 451-page note to tell you that microservices should be learned this way
- EXCLUSIVE INTERVIEW | INTELLIGENCE IS SPONTANED, NOT PLANNED: Evolution Fan, Former OpenAI Research Manager and UBC Associate Professor Jeff Clune
- chrome is set to dark mode (including the entire webpage)
猜你喜欢
StratoVirt 中的虚拟网卡是如何实现的?
从零开始配置 vim(11)——插件管理
阿里内网疯传的P8“顶级”分布式架构手册被我拿到了
The old saying: The interview must ask "Three handshakes, four waves", so you can't forget it
a-upload上传图片
chrome is set to dark mode (including the entire webpage)
五分钟教你内网穿透
2022-08-10北京华为OD机试真题分享
C# Call AutoNavi Map API to obtain latitude, longitude and positioning [Detailed 4D explanation with complete code]
2.MySQL ---- 修改数据库的字符集(日常小技巧)
随机推荐
日志使用注意事项和建议
沃土云创计划重磅来袭
反射获取DLL中的字段、属性、方法、泛型方法(C#)
安装nodejs
The ceiling-level microservice boss summed up this 451-page note to tell you that microservices should be learned this way
宝塔一键部署WordPress(含宝塔添加站点、阿里云安全组配置、阿里云子域名解析)
Notes and Recommendations for Using Logs
Web3 创业者指南:如何为你的产品构建一个去中心化社区?
学习二叉树
openEuler小程序会议指南
【学习笔记】一般图最大匹配
LeetCode69:牛顿迭代法和二分法求解x的平方根
go语言学习:并发编程(定时器/select/并发安全锁)
Spark Core
mysql常用的一些时间函数记录
五分钟教你内网穿透
什么是架构基本概念和架构本质
exist和in的区别
Web3 Entrepreneur's Guide: How to Build a Decentralized Community for Your Product?
Getting Started with Chrome Plug-in Development - Nanny Level Raiders