uber / uber/rides-android-sdk

Drop off and pick up locations are not used

Open
#247 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
293
Forks
132
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown Kotlin setup on rides-android-sdk 0.10.9, starting with RideRequestButton and its RideParameters handling. Trace how ServerTokenSession and the pickup and drop-off values are passed when the button is pressed. Done means the Uber app opens the plan-your-ride screen with both locations prefilled.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.