Closed AndersonFirmino closed 6 years ago
Actually you don't have to call login
anymore init
calls that by default,
i tried removing it, but still doesnt work. I'm doubtful about my google-services.json. I can just add firebase and download it from firebase console right? I tried to play around with Authentication=>SIGN-in method, but the json file doesnt change...
Hi, now it works when i install the apk directly. But after uploading it on play store, it gives me error:
03-23 12:03:21.704: I/GoogleService(18585): PlayGameServices: Google not connected calling connect
03-23 12:03:28.418: W/GoogleService(18585): SignInResult::Failed code=4, Message: null
any suggestions?
This shows when you are not signed in, try reinstalling and if the problem continues provide me full logcat,
it still doesnt work maybe i send you the logcat starting from "Play Service Available"
03-23 12:49:17.402: D/GoogleService(22256): Play Service Available.
03-23 12:49:17.420: I/VideoCapabilities(22256): Unsupported profile 4 for video/mp4v-es
03-23 12:49:17.433: D/GoogleService(22256): Google::Initialized
03-23 12:49:17.436: D/GoogleService(22256): Google not connected
03-23 12:49:17.484: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:17.492: W/cr_MediaCodecUtil(22256): HW encoder for video/avc is not available on this device.
03-23 12:49:17.505: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:17.512: D/ufoEGL(22256): droid_create_context : config id = 1 conf->NativeVisualID=1
03-23 12:49:17.512: I/ufoEGL(22256): Requested context : GLES 3.0
03-23 12:49:17.512: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:17.728: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:17.756: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:18.811: D/ufoEGL(22256): Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC
03-23 12:49:18.830: I/chromium(22256): [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
03-23 12:49:18.830: I/chromium(22256): [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
03-23 12:49:18.833: I/chromium(22256): [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
03-23 12:49:18.866: W/Ads(22256): Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=ej&caqid=DpW0WpLzNNDzgAeztafoCQ"}
03-23 12:49:18.867: W/Ads(22256): Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=ej&caqid=DpW0WpLzNNDzgAeztafoCQ"}
03-23 12:49:18.882: D/DynamitePackage(22256): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
03-23 12:49:18.890: I/Ads(22256): Starting ad request.
03-23 12:49:18.891: I/Ads(22256): Use AdRequest.Builder.addTestDevice("XXXXXXXXXXXXXXXXXXXXXXXXXXX") to get test ads on this device.
03-23 12:49:18.894: W/Ads(22256): Not retrying to fetch app settings
03-23 12:49:19.070: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:19.189: W/cr_CrashFileManager(22256): /data/data/org.godotengine.feedthepelicans02/cache/WebView/Crash Reports does not exist or is not a directory
03-23 12:49:19.232: D/GODOT(22256): setVirtualKeyboardHeight: 0
03-23 12:49:19.254: D/ufoEGL(22256): Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC
03-23 12:49:19.257: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:20.494: I/ExoPlayerImpl(22256): Init 1.3.1
03-23 12:49:20.554: W/chromium(22256): [WARNING:render_frame_host_impl.cc(2728)] OnDidStopLoading was called twice.
03-23 12:49:20.662: I/OMXClient(22256): Using client-side OMX mux.
03-23 12:49:20.762: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:20.782: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:20.869: I/Ads(22256): Ad finished loading.
03-23 12:49:20.871: I/Ads(22256): Ad finished loading.
03-23 12:49:20.871: W/godot(22256): AdMob: onRewardedVideoAdLoaded
03-23 12:49:25.033: W/GoogleService(22256): SignInResult::Failed code=4, Message: null
based on this https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes.html#SIGN_IN_REQUIRED , should i try startResolutionForResult(Activity, int) ?
i tried this(maybe it will be a useful information):
hi, i got it it's because i'm using Google Play App Signing. so, there are two types of sha-1 when you use this. upload & app signing. when you use Google Play App Signing, google will remove your sign from the apk and re-sign it with their managed certificate. So, if you use upload sha-1 on console.developers.google.com, then it works when you directly install the apk, but it wont work if you upload it to play store because google replaces it. So you have to edit the sha-1 on console.developers.google.com with the one they provided.
Anyway, thanks. I'm using your module.
I have the same problem :D and is solved in -->
https://github.com/playgameservices/play-games-plugin-for-unity/issues/2045#issuecomment-350335234
Thanks @RameshRavone
I was successful using this module. When I install the APK locally. Turning it over USB to my Android the Google Play system logs in normally. When I update my game in the Google Play store. It just does not connect.
Would you help me? 😅