简体   繁体   English

Flurry Analytics可以在Android上按城市报告用户的位置吗?

[英]Can Flurry Analytics report the user's location by city on Android?

Question: can Flurry Analytics report the user's location by city (or more detailed region) on Android? 问题:Flurry Analytics可以在Android上按城市(或更详细的区域)报告用户的位置吗?

I am wondering if anyone has any successful experience in reporting location data through the Flurry Analytics service for Android. 我想知道是否有人通过针对Android的Flurry Analytics服务报告位置数据有任何成功经验。

I am writing a healthcare app that will use location to provide access to local guidelines, and hence my users will feel justified in revealing their location. 我正在编写一个医疗保健应用程序,它将使用位置来提供对本地指南的访问,因此我的用户会觉得有理由透露他们的位置。

I have carefully followed the API instructions here: http://support.flurry.com/index.php?title=Analytics/GettingStarted/Android 我已仔细按照API说明进行操作: http//support.flurry.com/index.php?title = Analytics / Getstarted/Android

and have experimented with both fine and coarse location permissions: 并尝试了精细和粗略的位置权限:

android:name="android.permission.ACCESS_FINE_LOCATION"
android:name="android.permission.ACCESS_COARSE_LOCATION"

Despite this, the GeoLocation section of Flurry only reveals country location of use: 尽管如此,Flurry的GeoLocation部分仅显示了国家/地区的使用位置:

United Kingdom          127          100.0% 
Vatican City            0            0.0% 
Ukraine                 0            0.0% 
Switzerland             0            0.0% 
...
etc

Prior to adding the above permissions, the "Detailed Location" section was unavailable. 在添加上述权限之前,“详细位置”部分不可用。 After adding either one of the above permissions the "Detailed Location" section became available; 添加上述任一权限后,“详细位置”部分变为可用; but all city fields show "0; 0.0%": 所有城市字段显示“0; 0.0%”:

York                    0            0.0% 
Wolverhampton           0            0.0% 
West Bromwich           0            0.0% 
Walsall                 0            0.0% 
...
etc

I have tested on the emulator, Samsung Galaxy S and HTC Wildfire handsets and I would be very interested to hear if others have had success in reporting city data, or if this is a limitation of the Flurry Analytics API? 我已经在模拟器,三星Galaxy S和HTC Wildfire手机上进行了测试,我很想知道其他人是否已成功报告城市数据,或者这是否是Flurry Analytics API的限制?

Best wishes 最好的祝愿

Steven 史蒂芬

Right, since this has popped up a few more times I've looked into it again and have found the (a?) solution! 是的,因为这已经出现了几次,我再次调查并找到了(a?)解决方案!

It is possible to record user location as long as you use a real device, WITH a sim card OR wifi location enabled in settings. 只要您使用真实设备,在设置中启用SIM卡或wifi位置,就可以记录用户位置。

I had wrongly assumed that fine location could be accessed by a device (in my case Samsung Galaxy S) without a sim card - after all GPS receivers do just that, but it seems that this was not so. 我错误地认为,没有SIM卡的设备(在我的情况下是三星Galaxy S)可以访问精确的位置 - 毕竟GPS接收器就是这样,但似乎并非如此。

Sticking in a sim card or enabling wifi location did the trick. 坚持使用SIM卡或启用wifi位置就可以了。

It is possible to report user's location upto city level by configuring either of the following permissions in AndroidManifest.xml: android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION In case you are not able to set it, I recommend you to send across a mail to Flurry Support (support@flurry.com) with details of your implementation. 通过在AndroidManifest.xml中配置以下任一权限,可以将用户的位置报告到城市级别:android.permission.ACCESS_COARSE_LOCATION或android.permission.ACCESS_FINE_LOCATION如果您无法设置它,我建议您发送一个发送给Flurry支持部门(support@flurry.com),详细说明您的实施情况。 (Disclaimer: I work in the Support team at Flurry) (免责声明:我在Flurry的支持团队工作)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM