Git Product home page Git Product logo

lyft-ios-sdk's Issues

Authorization for scopes

Hi! I'm developing an iOS app which would essentially provide the user information such as ETA/Price estimates, and also let the user Request a ride through my app.

The iOS SDK only provides wrappers for only the endpoints which require default scopes. How would I go about request an auth token for a scope such as (rides.request), and then subsequently make a call to the respective endpoint to request the ride? Any wrappers in the works for this or would I just have to write the requests from the ground up?

Use of unresolved identifier 'LyftButton'

I'm trying to use the SDK with Swift 4 and Xcode 9.3.

I had the same issue as #17, which I fixed by replacing lines 31 and 32 with:

var urlComponents = URLComponents(url: mutableURLRequest.url!, resolvingAgainstBaseURL: false) 
var localVariable = urlComponents 
urlComponents?.queryItems = (localVariable?.queryItems ?? []) + queryItems 

Per this SO post.

Now when I try to use let lyftButton = LyftButton(), I get the error "Use of unresolved identifier 'LyftButton'".

Is this SDK compatible with Swift 4 and Xcode 9.x? Also opened as a SO post.

How to implement your pod file in objective-c ?

I had done most of thing which is available in apple guidelines to use lyft sdk in objective c but i can not implement Lyftconfiguration in objective-c.

Can i use your pod in objective-c ?

Lyftconfiguration start with
public struct Lyftconfiguration {

}
that's why it's not possible to implement in objective-c.

If you have possible way please tell me step.

Lyfi button not showing Estimate

Hi bro
i try your example code its showing Estimate times and price but in i try dynamic and static diffrent area its not showing ?

i using this lat long


 let pickup = CLLocationCoordinate2D(latitude: 39.9400543, longitude: -82.00999430000002)
        let destination = CLLocationCoordinate2D(latitude: 39.92797760000001, longitude: -82.0164671)
        LyftButton.configure(rideKind: LyftSDK.RideKind.Standard, pickup: pickup, destination: destination)

its not showing ..
screen shot 2018-12-08 at 5 02 28 pm
screenshot 2018-12-08 at 5 01 42 pm

Check Lyft availability in a specific location.

Is it possible to know if the Lyft service is available in a specific location ?
Is there a way in the SDK to ask if is it possible for the user to request a Lyft at is current location ?
So I could hide the Lyft button when it's not available for my user, thanks for the help !

Native SSO?

Does the native app and SDK support native SSO?

Pod file error . Could not find lyftsdk.

hi,
i install pod
but its showing this error
/Users/vc/Desktop/Isaac/SeatBus/Pods/LyftSDK/Sources/LyftUI/LyftButton.swift:97:30: Cannot assign value of type '() -> ()' to type '((Void) -> Void)?'

/Users/vc/Desktop/Isaac/SeatBus/Pods/LyftSDK/Sources/LyftUI/LyftButton.swift:175:29: Missing argument for parameter #1 in call

i cant access your lib please help me ...

screenshot 2018-12-08 at 2 35 07 am
screenshot 2018-12-08 at 2 34 59 am
screenshot 2018-12-08 at 2 33 01 am

and we could not find lyftsdk in Appdelegate (import ly...) not coming
Kindly reply me ...

iOS SDK broken for all calls in Canada (as well as non-US regions)

The Lyft API is giving an invalid error when invoked from the iOS SDK on any of the ride type, estimates and ETA routes. Instead of giving back results, it errors saying there is no service in the area (Toronto, Canada).

EXAMPLE:
GET request to https://api.lyft.com/v1/eta?lat=43.6479328&lng=-79.3778371

ERROR:
no_service_in_area
The requested location is not inside a Lyft service area

This is what the iOS SDK currently sends (BROKEN):
enter image description here

When invoking the API manually, the error doesn't happen if the user agent which the SDK sends out is omitted ('User-Agent' value of 'lyft-mobile-sdk:ios::1.0.6')

Removing 'User-Agent' works:
enter image description here

Confirmed that forking the iOS SDK and removing User-Agent removes this error (commit here: marchy@c23811f) – thus the bug is confirmed to be on the API front.

This is a critical break and affects all calls made from the iOS SDK (at least up here in Canada – and perhaps other non-US regions).

Compiling issue when deployment target is 13.0 in xcode 14

Compiling for iOS 11.0, but module 'LyftSDK' has a minimum deployment target of iOS 13.0: /Users/parasnavadiya/Library/Developer/Xcode/DerivedData/LyftDeeplinkDemo-eesogommwkzrklefmlioptdlhltj/Index.noindex/Build/Products/Debug-iphonesimulator/LyftSDK/LyftSDK.framework/Modules/LyftSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule

Xcode : 14.3.1
Deployment Target : 13.0

How to get token and use this SDK while development.

Hey folks,

I have made a new app in the lyft developer portal. Altghough, i have got clientId but i can't see where is my token.

As suggested in the docs, i am supposed to supply token:

LyftConfiguration.developer = (token: "...", clientId: "sy6E04NQHpv6" )

After reading the docs, i still have no idea where to get token.

Any hints?

Thanks

Objective C Support

Hi Team,

We have a project which is entirely in objective c. I downloaded the git hub code and followed these steps.

Manual Integration

Navigate to the SDK GitHub Releases page, download and unzip the archive marked as Latest release.
Drag the LyftSDK.xcodeproj project into your project's Project Navigator.
In your project's Build Target, click on the General tab and then, under Embedded Binaries, click the + button.
Select the LyftSDK.framework under your project.

I was able to add a view in xib and then link the lyftButton class to it. But I can connect the handleClick to the .m file. I did @import LyftSdk in the .m file. I am missing something which is why I am not able to connect anything except the referencing outlet for the lyft button.

I cannot even use any defined methods of LyftButton in Objectivec.m file.

I tried doing this in .m but it could find it.
#import "LyftSDK-Swift.h"

Please let me know if we have support to Objective C and if we do what am I missing.

Thank You
Sunil Gandham

Could not find Pod LyftSDK

trying to import the lyft sdk to my iOS and the pod cannot be found

  • podfile :
    • pod 'LyftSDK', '~> 1.0'
    • pod 'LyftSDK/API'z
  • pod install
  • import LyftSDK

xcode: 8.3
swift: 3.1

How get click event

Hi Bro,
I need lyft button touch event . because i working in analytics so i need how many people choose lyft .
i cant put uiview click event .
how can i get ?
screen shot 2018-12-08 at 3 19 23 pm

thank you

Swift 5 Support

Unable to install SDK using Carthage build on Swift 5 Xcode 10.2
error: SWIFT_VERSION '3.0.1' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'LyftSDK')

LyftSDK.ResponseType.unauthorized Error

Hellonti Hellouchkine Team,
Greetings...!!!

@mleventi @theatrus @ryancox @woodrow @andrewmartin

let location = CLLocationCoordinate2D(latitude: 37.7833, longitude: -122.4167)
       
       LyftAPI.rideTypes(at: location) { result in
           result.value?.forEach { rideType in
               print(rideType.displayName)
           }
       }

When i am trying to calling this method everytime i m got this error
please

▿ Result<Array<RideType>, LyftAPIError>
  ▿ failure : LyftAPIError
    - message : nil
    - reason : "unknown"
    ▿ status : Optional<ResponseType>
      - some : LyftSDK.ResponseType.unauthorized

Can you earn affiliate fees via the iOS SDK?

Hi there,

I was directed here by @keith to answer the question in the issue title. If I can, is there anything special I need to do, or will it detect it via the deep links that come from my app?

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.