-
Notifications
You must be signed in to change notification settings - Fork 259
Working on iOS, native crash in Android #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have a habit of finding solutions after I post issues :-) It was due to some bad refactoring to allow for staging and production values for the oauth ID, they were never properly assigned. Not sure how the iOS version worked though. |
Hi @keithahern , Could you explain to me how to resolve this problem on Android ? |
Hi @nvtuan96 That's a while ago. The problem was in my code and the oauth-id, there is different behaviour for Android and iOS. It was a case of getting the right oauth ID which was tricky and IIRC involved Google cloud rather than Firebase. The wrong oauth ID generally failed with unhelpful errors or crashes. From this page You need the following kinds of oauth ids Here's a bit of our login code stagingWebClientId and productionWebClientId are set to the values from the oath id above e.g. 18XXXXXXX-YYYYYYYYYYY.apps.googleusercontent.com
|
@keithahern I am encountering a similar error, but in my case, I have implemented google sign in and Firebase email auth in my unity app.
`#if UNITY_ANDROID || UNITY_IOS || UNITY_EDITOR public class Authentication : MonoBehaviour
} |
Hi @bhupiister. You had the same problem I'm having. Did you ever resolve it and how? |
Yes, I did but will need to find it. Give me one day's time and ill post the script. |
Thank you. I'd really appreciate it! |
Sorry to bother @bhupiister. Were you able to find it? Thanks. |
@jonathanahern |
@jonathanahern |
Thanks for getting back to me @bhupiister Those gist links come up as blank links for me unfortunately. Do you have another way to share? Or is that Apple Sign in repo you have a working version? I could check that out. Thanks for your help. I appreciate it! |
` namespace Google.Impl { internal class GoogleSignInImpl : BaseObject, ISignInImpl { #if UNITY_ANDROID
#if UNITY_ANDROID && !UNITY_EDITOR ` |
` public class GoogleSignIn { #if !UNITY_ANDROID && !UNITY_IOS
#if UNITY_ANDROID || UNITY_IOS
} internal interface ISignInImpl { |
@jonathanahern |
I have a working iOS implementation but my android build crashes hard when a login is attempted.
exported project shows google-services.json is there.
Thanks,
E/native-googlesignin: configuration is null!?
E/SignInFragment: Request not configured! Failing authenticate
E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/dream2ltexx/dream2lte:8.0.0/R16NW/G955FXXU3CRGH:user/release-keys'
Revision: '10'
E/CRASH: pid: 15207, tid: 15627, name: UnityMain >>> com.secret.viewer2 <<<
r0 00000000 r1 d0d61b48 r2 f3b3a174 r3 d4fd27a8
r4 ccd1cc10 r5 d0d61f94 r6 00000000 r7 00000000
r8 c8651cd0 r9 00000000 sl d0d62064 fp d0d61b38
ip c1d0a583 sp d0d61b38 lr f3b3a184 pc c1d0a584 cpsr f3687c90
backtrace:
E/CRASH: #00 pc 00008584 /data/app/com.secret.viewer2-v-p87JezfbUGR35eKkp6Lw==/lib/arm/libnative-googlesignin.so (GoogleSignIn_Pending+1)
#1 pc 00002180 ( (wrapper managed-to-native) Google.Impl.GoogleSignInImpl:GoogleSignIn_Pending (System.Runtime.InteropServices.HandleRef) + 0x48 (0xf3b3a138 0xf3b3a1c0) [0xf2c7bee0 - Unity Root Domain]+8576)
#2 il ........ at (wrapper managed-to-native) Google.Impl.GoogleSignInImpl.GoogleSignIn_Pending (System.Runtime.InteropServices.HandleRef) <IL 0x0002d, 0xffffffff>
The text was updated successfully, but these errors were encountered: