【发布时间】:2016-07-14 05:38:50
【问题描述】:
我在我的应用程序中添加了 Uber SDK。我没有向Request full access 申请项目。它正在开发中。我有一些我找不到答案的问题(我正在使用sandbox 模式。)
问。我需要测试。如果我要求并且司机已经被接受。我怎么知道他到达的时间或其他状态,例如arrived。以及当司机到达时如何在我的应用程序中向我的用户发送通知。我看到UBSDKRideRequestViewControllerDelegate 仅响应错误情况。
这是我的代码。
UBSDKRideParametersBuilder *builder = [[UBSDKRideParametersBuilder alloc] init];
[builder setPickupToCurrentLocation];
[builder setDropoffLocation:dropoffLocation];
UBSDKRideParameters *parameters = [builder build];
NSArray<UBSDKRidesScope *> *scopes = @[UBSDKRidesScope.RideWidgets,UBSDKRidesScope.Profile,UBSDKRidesScope.Request];
UBSDKLoginManager *loginManager = [[UBSDKLoginManager alloc] init];
UBSDKRideRequestViewController *vc = [[UBSDKRideRequestViewController alloc] initWithRideParameters:parameters loginManager:loginManager];
vc.title = @"Uber";
vc.delegate = self;
请指教谢谢。
【问题讨论】:
-
他们为我们编写了一个 sdk link。我想,你会在那里得到你需要的一切..
-
@AnkitNeoGHz 感谢您回答我。我已经看过了。但没有我想要的。 :D
标签: ios objective-c iphone uber-api