Skip to content

Drop off and pick up locations are not used #247

@St4B

Description

@St4B

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions