Uber Deeplinking on iOS

若如初见. 提交于 2019-12-19 18:23:43

问题


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.


回答1:


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!




回答2:


The dropoff address will show appear once the user drops a pin to select their pickup location.



来源:https://stackoverflow.com/questions/26049950/uber-deeplinking-on-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!