Skip to content

Error: status is pending return the pending future when calling RequestPermissionAsync on iOS #821

Closed
@thsbrown

Description

@thsbrown

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%

  1. Create a script with a function that contains await FirebaseMessaging.RequestPermissionAsync()
  2. Trigger the function on a button press.
  3. Check the runtime debug logs.
  4. Notice the error Error: status is pending return the pending future

Relevant Code:

public static async Task Initialize()
{
    await FirebaseMessaging.RequestPermissionAsync();
    DissmissCanvasController();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions