MVVMCross IMvxGeoLocationWatcher Success Action never fires on Android

对着背影说爱祢 提交于 2019-12-02 12:29:10

Per Odahan here:

Well... I investigated a bit more : The problem is known and can be seen on many devices. This is not a MvvmCross problem. Short answer : the device needs to be rebooted and all is working like a charm... It seems Google sent some updates that are causing the problem. Here is a thread speaking about this problem and a similar one concerning the GeoCode class :

https://code.google.com/p/android/issues/detail?id=38009

So : can be closed, MvvmCross is ok but others can face this bug so my explanations and the link here.

When you say it never fires 'success', does the success actually ever occur?

There could be lots of things going wrong in the GPS code - eg your app might not have privilege, your phone might have A-GPS or GPS disabled, or you might even be running on a location-less emulator - all of this is possible from your description.

It'a also worth noting that Xamarin.Android has long standing issues with hitting breakpoints - so it's better to add trace than to rely on breakpoint hitting :/


Perhaps try running though N=8 from http://mvvmcross.wordpress.com/ - does that help at all? (N=9 is also worth watching as it shows one way to allow multiple viewmodels to use the geowatcher)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!