Message Center Send Data from native to shared code RRS feed

  • Question

  • User385011 posted

    I'm looking for Message Center Implementation for Firebase Listener Class that sends data to shared Code.

    Thursday, July 18, 2019 4:10 PM


  • User369979 posted

    If you are asking how to use Messaging Center. Subscribe the message in your Forms:

    public App()
        MainPage = new NavigationPage(new MainPage());
        MessagingCenter.Subscribe<object, object>(this, "PassData", (sender, args) =>

    And send messages on the specific platform:

    MessagingCenter.Send<object, object>(this, "PassData", data);
    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, July 19, 2019 6:42 AM