playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

Google Play Services Green notification badge not appearing on the applications launch. #3203

Open Jokervvv2 opened 1 year ago

Jokervvv2 commented 1 year ago

This form is for reporting Unity Plugin issues only. To report an issue with the Play Games Service (non-SDK related), check Google Play Games Services Support. Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.

Authentication script

using System.Collections; using System.Collections.Generic; using UnityEngine; using GooglePlayGames; using GooglePlayGames.BasicApi; using UnityEngine.UI;

public class AuthenticateGP : MonoBehaviour {

// Start is called before the first frame update
void Start()
{
    PlayGamesPlatform.Instance.Authenticate(ProcessAuthentication);
}

internal void ProcessAuthentication(SignInStatus status) 
{
  if (status == SignInStatus.Success) 
  {
    // Continue with Play Games Services
  } 
  else 
  {
    // Disable your integration with Play Games Services or show a login button
    // to ask users to sign-in. Clicking it should call
  }
}

public void TriggerManualSignIn() // the script attached to the button to trigger a manual signin.
{
    PlayGamesPlatform.Instance.ManuallyAuthenticate(ProcessAuthentication);
}

} Expected behavior The google play notifications badge to appear.

Observed behavior The google play notifications badge not appearing. Bug Report Capture a bug report and share the Google Drive link. If the bug report contains sensitive information, then make it private and only give access to requests from ...@google.com accounts.

Screenshots If applicable, add screenshots to help explain your problem.

Versions

Additional context Only works on one phone - samsung note 9.

fmoyano commented 1 year ago

Could it be configuration problem in the Google Play Console regarding the signing used? The phone where it works is using the same build and the same extension (aab vs apk) than the others? I'm using the same Unity version and the same plugin version and it works for me.

Jokervvv2 commented 1 year ago

Hey Fmoyano, best fix is to revert to the previous version before the latest and it'll work with issue. Goodluck! :)