MixinNetwork/android-app

Cannot login

Closed this issue · 0 comments

wantg commented

Describe the bug
Cannot login

To Reproduce
Steps to reproduce the behavior:

  1. start my macos 12.3
  2. clone repo
  3. uncomment MAPBOX_DOWNLOADS_TOKEN line in $PWD/gradle.properties and put my mapbox secret token to there
  4. add my google-services.json into $PWD/app
  5. set package_name's value to one.mixin.messenger.test (in google-services.json)
{
  "project_info": {
    "project_number": "47750025639",
    "project_id": "a3a3-f327c",
    "storage_bucket": "a3a3-f327c.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:47750025639:android:53be3ee39201da95ffa682",
        "android_client_info": {
          "package_name": "one.mixin.messenger.test"
        }
      },
      "oauth_client": [
        {
          "client_id": "47750025639-feedru6pvv14t3f33hnpfsmie0p1pblm.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "AIzaSyB-qPZM09PtCEVs85_NXJJY-QvaN5cDjjA"
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "47750025639-feedru6pvv14t3f33hnpfsmie0p1pblm.apps.googleusercontent.com",
              "client_type": 3
            }
          ]
        }
      }
    }
  ],
  "configuration_version": "1"
}
  1. run emulator
~/Library/Android/sdk/emulator/emulator -avd Pixel_2_API_30 -dns-server 8.8.8.8
  1. open $PWD with android studio 2021.1
  2. run app in emulator
  3. login failed

Screen Shot 2022-04-04 at 16 44 04

Uploading Screen Shot 2022-04-04 at 16.44.04.png…