Hi, does the compose-navigation support <App Links...
# compose
j
Hi, does the compose-navigation support App Links?
These are how i’m using it now
Copy code
<intent-filter>
    <action android:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <data android:scheme="uz.uzinfocom.myid" />
</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:host="myid.uz"
        android:pathPattern="/api/v.*/oauth2/authorization"
        android:scheme="https" />
</intent-filter>
@Destination(
    deepLinks = [
        DeepLink(
            uriPattern = "<https://myid.uz/$FULL_ROUTE_PLACEHOLDER>"
        )
    ]
)
@Composable
fun AppLinkScreen() {
}
But it doesn’t work. I logged the data from the intent through the
onNewIntent()
method and got this result.
Copy code
<uz.uzinfocom.myid://authorization?client_id=test&auth_method=simple&status=0&state=None&method=simple&scope=address,contacts,doc_data,common_data>
Clicked url
Copy code
<https://myid.uz/api/v1/oauth2/authorization?client_id=test&response_type=code&scope=address%2Ccontacts%2Cdoc_data%2Ccommon_data&method=simple>
But I can’t navigate the required screen.
p
not sure how that works with Ramcosta library. Seems like you're using it
s
That library is just things on top of the androidx library, it doesn't strip anything away, so it should definitely work.