Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 9562 [details]
ON Android, after leaving a ContentPage with a map, where IsShwoingUSer is set to true, the app still polls for location even after the map is no longer being displayed.
## Steps to reproduce
1. Open test project and restore packages.
2. Open AndroidManifest.xml and enter your GoogleMapsAPI key in place of "YourApiKey"
3. Do whatever setting you need in Google's API console to get maps to show. (Add app to your "Key for Android Apps" in the APIs and Auth->Credentials page)
4. Launch the Android application.
5. Click on the button to open the map.
6. Note that location is polling.
7. Press the back button to exit the map
Expected result: Location polling will stop
Actual result: Location polling continues.
The workaround would be to override OnDisappearing() for the page that displays the map and set IsShowingUser to false in that method.
I tested this with Forms 18.104.22.16896 and 22.214.171.12409-pre2
I have checked this issue and with the help of attached project I am able to reproduce this issue.
I observed that when I come back form map page where IsShowingUser property is true the app shows the Location polling when I exit from map page.
Application Output: https://gist.github.com/saurabh360/a394e7305b31ec977441
IDE Logs: https://gist.github.com/saurabh360/72f052ad13bc30425abd
Device Logs: https://gist.github.com/saurabh360/5ceccd51ec2add23e6ea
=== Xamarin Studio ===
Version 5.7.1 (build 16)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Mono 3.12.0 ((detached/a813491)
GTK+ 2.24.23 (Raleigh theme)
Package version: 312000068
=== Apple Developer Tools ===
Xcode 6.1 (6604)
=== Xamarin.iOS ===
Version: 126.96.36.199 (Business Edition)
Build date: 2015-01-24 09:42:21-0500
=== Xamarin.Android ===
Version: 188.8.131.52 (Business Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
Supported Android versions:
1.6 (API level 4)
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
=== Xamarin.Mac ===
Version: 184.108.40.206 (Business Edition)
=== Build Information ===
Release ID: 507010016
Git revision: f12fcaf4707ab436bee2df6263eb5333197b262c
Build date: 2015-02-01 21:06:05-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0
=== Operating System ===
Mac OS X 10.10.0
Darwin Jatin66s-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
Fri Sep 19 00:26:44 PDT 2014
Thanks, this should be fixed in 1.3.5-pre1.
I have checked this issue with Xamarin.Forms: 220.127.116.1133 pre1 and I am not getting this behavior.
This issue has been fixed. Hence I am closing this issue.