locnavi_web_sdk

Last updated:

0 purchases

locnavi_web_sdk Image
locnavi_web_sdk Images
Add to Cart

Description:

locnavi web sdk

flutter_web_sdk #
LocNaviWebSDK 对应的fultter plugin,目前提供iOS、Android平台代码支持。
SDK 文檔 #
iOS文檔
Android文檔
獲取AppKey #
appKey、mapId、targetName、targetId等信息請向 [email protected] 申請
iOS #
在iOS工程的info.plist中添加授权申明
<key>NSBluetoothAlwaysUsageDescription</key>
<string>室内定位需要使用蓝牙功能</string>
<key>NSCameraUsageDescription</key>
<string>AR需要使用摄像头功能</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>请求在App使用期间使用定位功能</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>请求在App使用期间使用定位功能</string>
<key>NSMicrophoneUsageDescription</key>
<string>语音识别需要用到麦克风功能</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>请求在App使用期间使用语音识别功能</string>
copied to clipboard
iOS #
在Android工程的AndroidMainfest.xxml中添加
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<!-- 调用定位权限 -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- 调用摄像头的权限 -->
<uses-permission android:name="android.permission.CAMERA"/>
<!-- 调用麦克风的权限 -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
copied to clipboard
flutter #
初始化 #
_locnaviWebSdkPlugin.init('appkey');
//或选择性 设置服务url、ibeacon的扫描uuid、定时上传定位数据及上传间隔
await _locnaviWebSdkPlugin.init('nqB6HPIU2C', serverUrl: 'https://xxx.com', uuids: ['uuid1', 'uuid2'], uploadApi: 'https://xxx.com', uploadInterval: 1000, userId:'testUser');
copied to clipboard
显示室内地图 #
_locnaviWebSdkPlugin.openMap('mapId');
copied to clipboard
导航至具体的poi位置 #
//poi数据需要在导航系统中录入过,
_locnaviWebSdkPlugin.openMap('mapId', 'poiId');
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.