Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't make it work on Android #4

Open
ragcsalo opened this issue Jan 29, 2021 · 6 comments
Open

Couldn't make it work on Android #4

ragcsalo opened this issue Jan 29, 2021 · 6 comments

Comments

@ragcsalo
Copy link

ragcsalo commented Jan 29, 2021

I did all the steps below:

  1. added the plugin
  2. edited config.xml and added the paths
  3. I've added the <link rel="alternate" href="android-app:... part to my website
  4. in Play Console I added the website URL (and verified it)
  5. in the Search Console I've added the domain and verified it

When I test it with ADB, I still get the Error: Activity not started, unable to resolve Intent message. :-(
What am I missing here?

@ragcsalo
Copy link
Author

ragcsalo commented Jan 29, 2021

Allright... I'm halfway done. :-) Now it works using the ADB shell command, after I've added this segment to my AndroidManifest.xml:

            <intent-filter android:label="MyApp">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="https"
                    android:host="mywebsite.com"
                    android:pathPrefix="/deeplink" />
            </intent-filter>

However, when I use the universal link from another app (or from Chrome), I still get the dialog "Complete action using..." and I have to choose my app or Chrome.

@ragcsalo
Copy link
Author

Just to be sure.... If I'd like to use universal links like this:
https://mydomain.com/deeplink/something=123

Then I have to add this:
<link rel="alternate" href="android-app://com.mydomain.myapp/https/mydomain.com/deeplink/" />

to the <header> part of https://mydomain.com/deeplink/index.php?

@zveljkovic
Copy link

That is how I understood the docs. Still trying to make this work

@ppetree
Copy link

ppetree commented Jul 2, 2021

Before I embark on this... did you get it working?

@AlibekJ
Copy link

AlibekJ commented Jul 6, 2021

Works fine for me.

@fquirin
Copy link

fquirin commented Jul 18, 2022

Just a comment for anyone wondering if it works on Android 12:
Yes it does but you have to verify your domain now. See Android 12 changes and verify-site-associations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants