You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lyft is growing very quickly and is currently available in [these cities](https://www.lyft.com/cities). Please keep in mind that some ride types (such as Lyft Line) are not yet available in all Lyft cities. If you set the ride type of the button and it happens to be unavailable, the button will default to the Lyft Classic ride type. You can utilize the `LyftAPI.rideTypes(at:completion:)` wrapper to get a list of the available ride types in an area.
89
89
90
+
#### Deep link behavior
91
+
When a user taps on the Lyft Button, the default behavior is to deep link into the native Lyft app with the configuration information you have provided.
92
+
93
+
However, if you would like to create a ride request on Lyft using Lyft's mobile web experience, you can specify the button's `deepLinkBehavior` as follows:
94
+
```swift
95
+
lyftButton.deepLinkBehavior= .web
96
+
```
97
+
98
+
This is preferable if you do not want the user to leave your app when making a ride request. Also, it does not require the user has Lyft installed.
99
+
90
100
#### Button styles
91
101
To specify the button style, use `enum LyftButtonStyle`
LyftDeepLink.requestRide(kind: .Standard, from: pickup, to: destination)
118
128
```
119
129
130
+
Note that you can specify a LyftDeepLinkBehavior in this request, to decide between deep linking to the native lyft app or launching Lyft's mobile web experience within your own app.
131
+
120
132
## Support
121
133
122
134
If you're looking for help configuring or using the SDK, or if you have general questions related to our APIs, the Lyft Developer Platform team provides support through our [forum](https://developer.lyft.com/discuss) as well as on Stack Overflow (using the `lyft-api` tag)
0 commit comments