I want to open Android app from Chrome browser

Asked 2 years ago, Updated 2 years ago, 34 views

I want to open the app from an Android Chrome browser, but I can't.

Specify the Intent filter below in the Android app and

int-filter

<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: host="signincallback"
                    android: path="/"
                    android: scheme="myapp"/>
            </intent-filter>

I redirected to url below in Chrome, but the application does not start.
How do I specify it?

URL

intent://signincallback/#Intent;scheme=myapp;package=com.example;S.exist=true;end

android

2022-09-29 21:33

1 Answers

A while ago, there was an Android Studio bug that caused lowercase letters to become capitalized when complementing the code to a permission or intet filter related string in a manifest.

https://code.google.com/p/android/issues/detail?id=157123

<category android:name="ANDROID.INTENT.CATEGORY.DEFAULT"/>
<category android:name="ANDROID.INTENT.CATEGORY.BROWSABLE"/>

I don't think this part would have worked without the following.

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


2022-09-29 21:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.