Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

MessagingCenter not working

$
0
0

I had this Android App working. Then I started working on another branch, and today I continued on the Android App.
But it is no longer working. Reason is the MessagingCenter no longer works.
I have this at one location:

        MessagingCenter.Subscribe<App, FCM.NETStandard.Models.Message>(App.Current, "Hi", async (sender, arg) =>
        {
            await MessageReceived(arg);
        });

And at another location I have

        MessagingCenter.Send<object, FCM.NETStandard.Models.Message>(this, "Hi", msg);

And I can see that the subscription is made, but when the send happens, the subscribed delegate is not executed (any longer).
Tried it with other messages and it just does not do anything. What could be the reason?

Thanks

Ben


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>