rides-android-sdk icon indicating copy to clipboard operation
rides-android-sdk copied to clipboard

Drop off and pick up locations are not used

Open St4B opened this issue 1 year ago • 0 comments
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

St4B avatar Jun 12 '24 17:06 St4B