Skip to content

Commit

Permalink
Merge pull request #51 from uber/agraebe-patch-1
Browse files Browse the repository at this point in the history
Adding sandbox hint for widget
  • Loading branch information
itstexter authored Sep 22, 2016
2 parents f3ae76c + 497d753 commit ee8a0ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ requestButton.setRequestBehavior(new RideRequestActivityBehavior(this, REQUEST_C

That's it! With this configuration, when a user clicks on the request button, an activity will be launched that contains a login view (on first launch) where the user can authorize your app. After authorization, this activity will contain the Ride Request View. If any unexpected errors occur that the SDK can't handle, the activity will finish with an error in the result Intent using either the key `RideRequestActivity.AUTHENTICATION_ERROR` or `RideRequestActivity.RIDE_REQUEST_ERROR` depending on where the error occurred.

> **Note:** The environment ([sandbox](https://developer.uber.com/docs/rides/sandbox) or production) is considered by the Ride Request Widget. If you use the sample source code from above, your calls will be issued to the Sandbox. The widget will display a `sandbox` badge to indicate that. To change the mode, set environment to `Environment.PRODUCTION`.
## Ride Request Button with ETA and price
To further enhance the button with destination and price information, add a Session to it and call `loadRideInformation()` function.

Expand Down

0 comments on commit ee8a0ec

Please sign in to comment.