Closed
Description
Please fill in the following fields:
- Unity editor version: 2018.4.17f1
- Firebase Unity SDK version: 6.16.0
- Source you installed the SDK: Unity Package Manager (.unitypackage or Unity Package Manager)
- Problematic Firebase Component: Cloud Messaging (Auth, Database, etc.)
- Other Firebase Components in use: Core (Auth, Database, etc.)
- Additional SDKs you are using: PlayFab (Facebook, AdMob, etc.)
- Platform you are using the Unity editor on: Mac (Mac, Windows, or Linux)
- Platform you are targeting: iOS (iOS, Android, and/or desktop)
- Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)
Please describe the issue here:
For some reason when I call await FirebaseMessaging.RequestPermissionAsync()
I seem to always get the error Error: status is pending return the pending future
. I have also tried using ContinueWithOnMainThread
as well as ContinueWith
and I still get the same error.
Steps to reproduce:
What's the issue repro rate? 100%
- Create a script with a function that contains
await FirebaseMessaging.RequestPermissionAsync()
- Trigger the function on a button press.
- Check the runtime debug logs.
- Notice the error
Error: status is pending return the pending future
Relevant Code:
public static async Task Initialize()
{
await FirebaseMessaging.RequestPermissionAsync();
DissmissCanvasController();
}