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.
# Steps to reproduce
1. Create a Xamarin Forms Project
2. Create a View Model with a Command that executes something similar to: MessagingCenter.Send(this, "LoginCompleted");
3. Subscribe to this in Xamarin.iOS (Forms Embedding):
# Expected behavior
# Actual behavior
Event is not being raised
# Supplemental info (logs, images, videos)
I grabbed the code from github for Messaging Center and the problem is this part: "if (subscription.Subscriber.Target != null && subcriptions.Contains(subscription))"
For some reason the Target is null here.
If I use the Messaging Center code that comes with the example project - it all works fine.
# Test environment (full version information)
I'm following your steps and using your code snippets, but it's working for me. Please provide a solution and project that demonstrates this issue, and reopen the ticket so we can give that a look.
I'm using 184.108.40.206-embeddingpreview