sharenowTech / openAPI

Documentation on the openAPI of the car2go system
https://www.car2go.com
58 stars 10 forks source link

Will deep link offer a universal link for web app? #15

Open JTL1992 opened 7 years ago

JTL1992 commented 7 years ago

we are working with a web app about service of taxi, can you offer a deep link for web app?

edkim commented 7 years ago

We've been unable to get the Android deep link to work on our web app (running on device). It always opens a browser and asks for a signup. The iOS deep link works just fine though.

JTL1992 commented 7 years ago

@edkim I think that there is a solution for it, as the deeplink for IOS, use schema: car2go, host vehicle in 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="car2go"
                android:host="vehicle"
                android:path="/"/>

`

edkim commented 7 years ago

@JTL1992 The code you posted looks like it's for a native android app. I have an HTML5 web application that I want to add Car2Go deep links to. The deep link works great using the instructions for iOS (as long as the Car2Go app is installed), but no luck with getting it to work on Android.

rompic commented 7 years ago

I know that there have been some changes in chrome >=25 maybe this helps https://developer.chrome.com/multidevice/android/intents

ericjames commented 6 years ago

Apple has officially deprecated the iOS custom URI scheme so car2go: no longer works. Please add an apple-app-association file to your regular https:// endpoint so we can all be on the same page here. https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html