question

iamgauravarora avatar image
0 Votes"
iamgauravarora asked JessieZhang-2116 commented

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

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!

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @iamgauravarora , I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·

1 Answer

JessieZhang-2116 avatar image
1 Vote"
JessieZhang-2116 answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.