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

pickupLocation is ignored when opening the uber app #6

Closed
foca opened this issue Jan 12, 2016 · 0 comments
Closed

pickupLocation is ignored when opening the uber app #6

foca opened this issue Jan 12, 2016 · 0 comments
Labels

Comments

@foca
Copy link

foca commented Jan 12, 2016

When I set the pickup location and click the button, it opens the Uber app ok, and immediately changes the pickup location from the one specified in the button to my current location.

This is all the code I have in the main ViewController (in a minimal app that has only this):

import UIKit
import UberRides

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let button = RequestButton()
        button.setProductID("6ad061f8-9a50-4dcc-b12a-d810a0262d31")
        button.setPickupLocation(
            latitude: "-34.912342",
            longitude: "-56.178625",
            address: "Gonzalo Ramirez 1676",
            nickname: "Sinergia Cowork"
        )

        view.addSubview(button)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }

}

I've tried with and without setting the product ID, with and without the address field, and with and without the nickname field. The result is that it always sets my request to my current location, instead of the desired location.


  • SDK installed from master via Carthage.
  • XCode 7.2 (7C68)
  • iOS 9.2 (13C75)
  • Uber v2.110.0
@faarwa faarwa closed this as completed in 7e50439 Jan 16, 2016
@faarwa faarwa added the bug label Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants