Skip to content

[Bug] APK crashes after using Firebase in Unity Editor Version 2023.2.0f1  #903

@Harsh-Khambhadiya

Description

@Harsh-Khambhadiya

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2023.2.0f1
  • Firebase Unity SDK version: 11.6.0
  • Additional SDKs you are using: GooglePlayGamesPlugin-0.11.01.unitypackage
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website

[REQUIRED]

Tried to create demo project to perform google play games sign in using Firebase authentication, for that I use the [GooglePlayGamesPlugin-0.11.01.unitypackage] and [FirebaseAuth] package after importing both just tried to build an apk with minimum target version of Android 9.0(API level 28) and maximum is Android 13.0 (API level 33) and then just build the apk after building i installed it on the device (S21 FE (Android 13)) then, at startup it shows little popup for playgames icon for validating after that app crashes.

// TODO(you): code here to reproduce the problem

using GooglePlayGames;
using GooglePlayGames.BasicApi;
using TMPro;
using UnityEngine;

public class Auth : MonoBehaviour
{
    public TextMeshProUGUI Detail;
    public string Token;

    void Awake()
    {
        PlayGamesPlatform.Activate();
    }

    void Start()
    {
        Debug.Log("Authenticate");
        PlayGamesPlatform.Instance.Authenticate(status =>
        {
            if (status == SignInStatus.Success)
            {
                Debug.Log("\nSuccess\nRequestServerSideAccess");
                PlayGamesPlatform.Instance.RequestServerSideAccess(true, code =>
                {
                    Debug.Log("Authorization code: " + code);
                    Token = code;
                });

            }
            else Debug.Log("Failure");
        });
    }
}

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