From a3e799e7b46b075a102149975a6faf81c58fa3ac Mon Sep 17 00:00:00 2001 From: a-maurice Date: Wed, 6 Sep 2023 13:46:03 -0700 Subject: [PATCH] Update description for RequestPermissionAsync --- .../testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs b/messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs index e3d540ca..2451e4ef 100644 --- a/messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs +++ b/messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs @@ -82,10 +82,12 @@ void InitializeFirebase() { }); DebugLog("Firebase Messaging Initialized"); - // This will display the prompt to request permission to receive + // On iOS, this will display the prompt to request permission to receive // notifications if the prompt has not already been displayed before. (If // the user already responded to the prompt, thier decision is cached by // the OS and can be changed in the OS settings). + // On Android, this will return successfully immediately, as there is no + // equivalent system logic to run. Firebase.Messaging.FirebaseMessaging.RequestPermissionAsync().ContinueWithOnMainThread( task => { LogTaskCompletion(task, "RequestPermissionAsync");