lyft / lyft-ios-sdk Goto Github PK
View Code? Open in Web Editor NEWPublic Lyft SDK for iOS
License: Other
Public Lyft SDK for iOS
License: Other
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?
Hi,
Please let me know the solution how can i integrate this library for existing app which developed in objective-c
Thanks
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.
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.
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)
I have a question about the rate limits:
https://developer.lyft.com/docs/rate-limits
Does Lyft differentiate between the User entity and the App entity when rate limits are applied, like Uber does? (https://developer.uber.com/docs/riders/guides/rate-limiting)
Is it possible to have 10000 requests per minute for every access_token?
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 !
Please provide me solution to use this sdk in objective-c, I am not getting any solution for this.
Does the native app and SDK support native SSO?
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 ...
and we could not find lyftsdk in Appdelegate (import ly...) not coming
Kindly reply me ...
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):
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')
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 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
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
LyftAPIURLEncoding.swift
line 32
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
trying to import the lyft sdk to my iOS and the pod cannot be found
import LyftSDK
xcode: 8.3
swift: 3.1
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')
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
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.