Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uber Deeplinking on iOS

I am trying to generate a deep link that will open the app, set pickup location to current location and dropoff address to Uber's HQ.

Here is what I have:

uber://?action=setPickup&pickup=my_location&dropoff[formatted_address]=1455%20Market%20St%2C%20San%20Francisco%2C%20CA%2094103

Unfortunately, no destination address is being pre-filled once in the app.

like image 229
Romain Avatar asked Sep 25 '14 23:09

Romain


People also ask

How do Deeplinks work iOS?

Deep linking consists of using a hyperlink that links to a specific piece of content within an app. The specific content could be a specific view, a particular section of a page, or a certain tab. To see an example, download the Twitter app. Log into it and close it.

How do I make a deep link for iOS app?

First, open Xcode, go to Project settings -> capabilities. Scroll down to Associated Domains and turn it on. Once it is enabled, we shall add any URL that implements our apple-app-site-association resource, preceded by app links. Inside the Domains section, add a applinks:myApp.com.

What does adjust Deeplinking mean?

Deep links are a type of link that send users directly to an app instead of a website or a store. They are used to send users straight to specific in-app locations, saving users the time and energy locating a particular page themselves – significantly improving the user experience.


1 Answers

Hey I was running into the same problem and this is the way I got it to work. First, you need to add your client id to the url. So in your case change

uber://?action=setPickup&pickup=my_location&dropoff[formatted_address]=1455%20Market%20St%2C%20San%20Francisco%2C%20CA%2094103

to

uber://?client_id=YOUR_CLIENT_ID&action=setPickup&pickup=my_location&dropoff[formatted_address]=1455%20Market%20St%2C%20San%20Francisco%2C%20CA%2094103

where YOUR_CLIENT_ID is the client id given to you by Uber.

To get a client id you must register your app with Uber at https://developer.uber.com/.

Hope this helps!

like image 70
nb07 Avatar answered Oct 13 '22 14:10

nb07