simple_auth icon indicating copy to clipboard operation
simple_auth copied to clipboard

Can't understand how to auth and redirect to my app after logging in google

Open tmp05 opened this issue 5 years ago • 1 comments

my code:

SimpleAuthFlutter.init(context);
   
final simpleAuth.GoogleApi googleApi = new simpleAuth.GoogleApi("google",
        "my_client_id.apps.googleusercontent.com",
        "my_redirect_url",
    );

in Android.manifest:

        <activity android:name="clancey.simpleauth.simpleauthflutter.SimpleAuthCallbackActivity" >
            <intent-filter android:label="simple_auth">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="com.googleusercontent.apps.my_client_ID" />
            </intent-filter>
        </activity>

So, await googleApi.getUserProfile() opens empty google page

tmp05 avatar May 08 '20 10:05 tmp05

up

cahyowhy avatar Jun 30 '20 11:06 cahyowhy