Is there a working example of Xamarin forms In-App messaging using Firebase for both Android and iOS platforms?

Gaurav Arora 1 Reputation point
2021-04-08T05:44:32.29+00:00

I am looking to implement In-App messaging in my Xamarin forms using Firebase App for both platforms ios and Android.

I have already implemented Firebase push notificaiton in Xamarin forms app.

There is alredy docuementation available for push notification but not for In-App notification.

Any Documentation with working example would be much appreciated!

Developer technologies | .NET | Xamarin
{count} votes

1 answer

Sort by: Most helpful
  1. JessieZhang-MSFT 7,716 Reputation points Microsoft External Staff
    2021-04-08T08:56:42.43+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    If I understand correctly, do you want to display an alert? Then you can check document: Display Pop-ups.

    All Xamarin.Forms-supported platforms have a modal pop-up to alert the user or ask simple questions of them. To display these alerts in Xamarin.Forms, use the DisplayAlert method on any Page.

    A simple code snippet:

      async void OnAlertYesNoClicked (object sender, EventArgs e)  
    {  
      bool answer = await DisplayAlert ("Question?", "Would you like to play a game", "Yes", "No");  
      Debug.WriteLine ("Answer: " + answer);  
    }  
    

    Besides, you can also use other popular nuget, for example Rg.Plugins.Popup ,which is a cross platform plugin for Xamarin.Forms which allows you to open Xamarin.Forms pages as a popup that can be shared across iOS, Android, UWP, and macOS.

    For more details, you can check: https://github.com/rotorgames/Rg.Plugins.Popup

    Best Regards,

    Jessie Zhang

    ---
    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.