AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

Invalid ID in Unity

Open chenraiy opened this issue 3 years ago • 5 comments

Configuration

  • Version: 0.10.0
  • Integration: unity
  • Identity provider: Google

Description

I have a project to save file to Google Drive. So, I need to use AppAuth to login. But, when I login , It will turn back to login page, not go to app. how can I do in my projec 螢幕擷取畫面 2021-10-04 203424 t

chenraiy avatar Oct 04 '21 13:10 chenraiy

Please provide more information how you've integrated AppAuth into your project. Just stating Unity is not enough information to help with your integration.

agologan avatar Oct 04 '21 18:10 agologan

first, thanks your help. I use Unity 2020.3.19, and I use PlayServicesResolver to provide me resolve dependencies. Here is: https://github.com/googlesamples/unity-jar-resolver It provide net.openid.appauth-0.10.0.aar for Unity. This project is work on Android 8, but not on Android9 and above.

chenraiy avatar Oct 05 '21 01:10 chenraiy

Sorry when I asked about the integration I wanted to know how you defined your AndroidManifest.xml (probably the one in Assets/Plugins/Android/) or how you've defined the appAuthRedirectScheme manifestPlaceholder required by the lib, and of course what are the values you're using.

agologan avatar Oct 07 '21 06:10 agologan

Here is AndroidManifest.xml in my project. androidmanifest And, there are same app, but different result. Android 8 , It work!! I can login and get my google drive files list. https://user-images.githubusercontent.com/16771070/136340120-1bdd4181-02d0-459c-9eff-8c0f792cd44b.mp4 Android 11 It not work. https://user-images.githubusercontent.com/16771070/136340352-808866c3-4a88-4766-9675-9c7e988656e9.mp4

chenraiy avatar Oct 07 '21 07:10 chenraiy

Just a guess but try removing android:launchMode="singleTask"

agologan avatar Oct 13 '21 08:10 agologan