question

VuyiswaMaseko-8882 avatar image
0 Votes"
VuyiswaMaseko-8882 asked VuyiswaMaseko-8882 commented

Firebase Push notification

Good Day

As you know a lot of HUAWEI phones don't support Firebase Push notification . Is there a way i can check in Xamarin forms if a phone support Firebase push so that i implement a different Push for that phone programmatically ?

Thanks

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 @VuyiswaMaseko-8882 , May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.

0 Votes 0 ·

1 Answer

WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered VuyiswaMaseko-8882 commented

Hello,

GoogleApiAvailability in Xamarin.GooglePlayServices.Base nugget packages is used to check for the presence of Google Play Services:

Verify Google Play Services in OnCreate method of MainActivity class

 int resultCode = GoogleApiAvailability.Instance.IsGooglePlayServicesAvailable (this);

Refer to https://docs.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/remote-notifications-with-fcm?tabs=windows#check-for-google-play-services-and-create-a-notification-channel

More details : https://developers.google.com/android/reference/com/google/android/gms/common/GoogleApiAvailability

Best Regards,
Wenyan Zhang


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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
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.

Thanks it worked. i have a question that i asked , can you check if you can assist me with ?

https://docs.microsoft.com/en-us/answers/questions/822938/you-uploaded-an-apk-or-android-app-bundle-which-ha.html

thanks

0 Votes 0 ·