Bug 25557 - Pin.Clicked does not work
Summary: Pin.Clicked does not work
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 35091 ()
Depends on:
Blocks:
 
Reported: 2014-12-21 10:48 UTC by Christopher Svanefalk
Modified: 2018-01-11 00:10 UTC (History)
16 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Christopher Svanefalk 2014-12-21 10:48:57 UTC
Binding a listener to a Map Pin does nothing at all, as the event never fires. Tried on 1.3-pre-release-4.

To reproduce:

1. Create a Map in a ContentPage
2. Create a Pin, bind a listener to the Clicked event
3. Add Pin to Map
4. Launch app and click the Pin

Xamarin Studio
Version 5.5.4 (build 15)
Installation UUID: fb249e80-2b94-4e1a-bb82-1f0a76379e63
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

Apple Developer Tools
Xcode 6.1.1 (6611)
Build 6A2008a

Xamarin.Mac
Version:

Xamarin.iOS
Version: 8.4.0.47 (Business Edition)
Hash: 7244769
Branch: 
Build date: 2014-12-11 14:54:30-0500

Xamarin.Android
Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/csvanefalk/Library/Developer/android-sdk-osx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		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.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Build Information
Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

Operating System
Mac OS X 10.10.1
Darwin Christophers-MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 1 Arpit Jha 2015-01-13 04:50:54 UTC
We have checked this issue and unable to reproduce this issue.

Steps i have followed to reproduce this issue.

1. Open ‘working with Maps’ sample in XS.
2. Update xamarin.forms,xamarin.forms.maps version to 1.3.0.6286-pre4.
3. Set app.iOS as a startup project.
4. Run the application.
5. Click on Pin tab.
6. Observed that able to pin clicked.

Could you please provide us sample project and environment info,so that we can reproduce at our end ?

screencast: http://www.screencast.com/t/66aqaPhDThx

Environment Info:

Xamarin.forms vesion : 1.3.0.6286-pre 4
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 3d25a767-a003-4a7d-9f5e-e57987cf6cf0
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1 (6602)
Build 6A1052c

=== Xamarin.iOS ===

Version: 8.6.0.51 (Enterprise Edition)
Hash: dfb682f
Branch: 
Build date: 2015-01-08 13:39:32-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Enterprise Edition)
Android SDK: /Users/mac360_xamarin/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.18 (Enterprise Edition)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.10.0
Darwin mac360-xamarins-Mac-mini.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Christopher Svanefalk 2015-01-20 18:31:35 UTC
This is reproducible by executing the standard WorkingWithMaps project on Android. Click the pin brings up the information window for the pin, and clicking that window crashes the app. It seems to work fine on iOS.

Upgrading to 1.3.2 pre-release solves this problem, so it should be gone in next stable.
Comment 3 Jon Douglas [MSFT] 2015-02-18 12:20:45 UTC
*Reproduction

https://www.dropbox.com/s/ce9xxtvlbcf9vev/MapTest.zip?dl=0

*Description

On the iOS platform, the pin.Clicked event never fires and thus no code gets executed such as:

pin.Clicked += (sender, args) => {
    DisplayAlert ("Tapped!", "Pin was tapped.", "OK");
};
Comment 4 karl.kopp 2015-02-25 04:11:52 UTC
The problem is not that the pin doesn't show the info box (which it does), its that when you click the info box, that click event isn't fired. See the dropbox solution above for an example.
Comment 5 Jon Douglas [MSFT] 2015-03-04 17:38:32 UTC
I've added a reproduction of this as of 2/18 and thus am setting the bug to "NEW" to ensure we can confirm the same reproduction.
Comment 6 Adam 2015-03-06 10:37:35 UTC
Bump. We are currently developing an application for iOS and Android using Xamarin Forms. we are using Xamarin forms maps. But Clicked event  for Xamarin.Forms.Maps.Pin is not firing in iOS.
Comment 7 rcatiller 2015-03-08 23:32:57 UTC
Any updates on this would be greatly appreciated.  We too are developing a Xamarin Forms app utilizing Maps and this bug is a blocker for us.
Comment 8 michael.eakins 2015-03-09 08:54:57 UTC
I wanted to make sure a reference to https://bugzilla.xamarin.com/show_bug.cgi?id=27621 exists in the post as well as they are the same issue with different titles.  

It appears that several people have seen this issue now.

An update was posted to the other thread and I thought users here may be interested.
Comment 9 alberto.aragao 2015-03-16 14:44:23 UTC
Any update on this issue? We are working on an app that needs this feature and this bug is already open for a long time. Thanks.
Comment 10 Arpit Jha 2015-03-25 03:49:46 UTC
I have checked this issue and now able to reproduce this issue with the help of comment 3.

Screencast: http://www.screencast.com/t/sxUAEi8g9uu

Ide log: https://gist.github.com/Arpit360/1e00dbc524124e71f291

Environment Info:
Xamarin.Forms Version: 1.4.0.6341
Xamarin.Forms.Maps version: 1.4.0.6341
=== Xamarin Studio ===

Version 5.8.2 (build 5)
Installation UUID: 3d25a767-a003-4a7d-9f5e-e57987cf6cf0
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Apple Developer Tools ===

Xcode 6.1 (6602)
Build 6A1052c

=== Xamarin.Mac ===

Version: 1.12.0.14 (Enterprise Edition)

=== Xamarin.Android ===

Version: 4.20.1.0 (Enterprise Edition)
Android SDK: /Users/mac360_xamarin/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 8.8.2.3 (Enterprise Edition)
Hash: 50919fe
Branch: 
Build date: 2015-03-23 17:10:22-0400

=== Build Information ===

Release ID: 508020005
Git revision: 541c06a4f6c95383333375d56fd6c23ce48cb916
Build date: 2015-03-20 09:23:08-04
Xamarin addins: 02510c4990dee3475c282b3182d588975a63ff07

=== Operating System ===

Mac OS X 10.10.0
Darwin mac360-xamarins-Mac-mini.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 11 Jason Smith [MSFT] 2015-03-30 17:55:55 UTC
Should be fixed in 1.4.2-pre1
Comment 12 srobbins103 2015-04-12 03:57:06 UTC
I still see a problem in 1.4.2-pre2 - please see project to reproduce here: https://forums.xamarin.com/discussion/comment/115289/#Comment_115289
Comment 13 Sebastian Brandes 2015-11-23 05:13:51 UTC
*** Bug 35091 has been marked as a duplicate of this bug. ***
Comment 14 ALexey Starkov 2018-01-11 00:10:31 UTC
I have this problem too. I have last versions of XF components. Man, this bug had detected at 2014. 2018 now and this bug is still not fixed!!! WTF?! More than 3 years left.