Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop off and pick up locations are not used #247

Open
St4B opened this issue Jun 12, 2024 · 0 comments
Open

Drop off and pick up locations are not used #247

St4B opened this issue Jun 12, 2024 · 0 comments

Comments

@St4B
Copy link

St4B commented Jun 12, 2024

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 St4B changed the title Drop off location is not used Drop off and pick up locations are not used Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant