-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安卓8以上后台定位功能 #14
Comments
|
直接用app的通知即可 import android.app.Notification; 函数代码 https://lbs.amap.com/api/android-location-sdk/guide/utilities/permision_8 Utils.getAppName函数为这个 |
你这个基本上都是调用的系统API啊,建议你还是fork一份去自己在原生代码里加吧 |
主要是没写过安卓机呀😅,复制进去改也全是报错,我在试试吧,谢谢大佬 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
功能描述
![image](https://user-images.githubusercontent.com/44773434/69607773-f154e900-1060-11ea-919a-89b035bb46df.png)
安卓8以上后台定位功能
Native端对应字段/方法
AMapLocationClient.disableBackgroundLocation(boolean removeNotification)
AMapLocationClient.enableBackgroundLocation(int notificationId, Notification notification)
源码的amap的location sdk示例有(在/app/src/main/java/com/amap/location/demo/Location_BackGround_Activity.java中)
参考文档:http://amappc.cn-hangzhou.oss-pub.aliyun-inc.com/lbs/static/unzip/Android_Location_Doc/index.html
谢谢大佬!!
The text was updated successfully, but these errors were encountered: