rides-android-sdk
rides-android-sdk copied to clipboard
Drop off and pick up locations are not used
trafficstars
I ve set up the button like that
val config = SessionConfiguration.Builder()
.setClientId("xxx")
.setClientSecret("xxx")
.setEnvironment(SessionConfiguration.Environment.SANDBOX)
.build()
val session = ServerTokenSession(config)
val rideParams = RideParameters.Builder()
.setProductId("a1111c8c-c720-46c3-8534-2fcdd730040d")
.setDropoffLocation(37.775304, -122.417522, "Uber HQ", "1455 Market Street, San Francisco")
.setPickupLocation(37.775304, -122.417522, "Uber HQ", "1455 Market Street, San Francisco")
.build()
val rideRequestButton = view as RideRequestButton
rideRequestButton.setRideParameters(rideParams)
rideRequestButton.setSession(session)
When I press the button the uber app launches in the main screen
Library version: 0.10.9
Expected Behavior: Open the "plan your ride" screen and prefill the pickup and drop off locations