Android WebView Deeplinking with Javascript Web app

I have a javascript web app that is being installed on android. I want to enable deep linking for this app, but not sure how to incorporate it into. I have actually completed what the android docs recommended, but after that I am lost. Here is what I have done –

Inside AndroidManifest.xml

<intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.LAUNCHER" />
        <data
            android:host="some url"
            android:scheme="https" />
    </intent-filter>

Inside FullscreenActivity.kt

// Read data from incoming intents - Deep linking
        val action: String? = intent?.action
        val data: Uri? = intent?.data

setContentView(webView)

if(data != null) {
            webView.loadUrl(data.toString())
        } else {
            webView.loadUrl(defaultUrl)
        }

So as you can see I have a hard coded url at the moment that the WebView just loads. Can someone explain to me how I could have deep linking work with my javascript app and android web view?