Skip to content

Multiple schemes #626

@klothnick

Description

@klothnick

I need to add custom schemes for Microsoft, Google Autodesk. Only one is working at a time. Here's my intents in android manifest: `





        <!-- Google OAuth Intent Filter -->
        <intent-filter android:autoVerify="true">
            <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.progresscenter.app"
                android:host="oauth" />
        </intent-filter>

        <!-- Autodesk OAuth Intent Filter -->
        <intent-filter android:autoVerify="true">
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="app"
                android:host="progresscenter"
                android:pathPrefix="/autodesk-callback" />
        </intent-filter>`

Build gradle: manifestPlaceholders += [ appAuthRedirectScheme: "app", auth0Scheme: "msauth", autodeskScheme: "app", // Autodesk googleScheme: "com.progresscenter.app", applicationName: "io.flutter.app.FlutterApplication" ]

problem is if i put appAuthRedirectScheme: "app", then only autodesk works others fail to redirect to app. if i put appAuthRedirectScheme: "com.progresscenter.app", then only google works other fails. how to make all work at same time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions