测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可 | MIT |
发布上次发布 | 2017年7月 |
由 Patrick Dunshee,Chesley Stephens,Shashank Thummalapalli,Rongbo Yang,Xiangwei Wang,Shiv Venkatraman 维护。
版本 1.1.6.1
使用一行代码集成 Phunware iOS 测试 SDK,或者根据需要指定要集成的 SDK。
我们建议使用 CocoaPods,并在您的 Podfile 中添加以下内容。
pod 'Phunware/Beta' # Pull in all SDKs
如果您不想安装所有 SDK,存在多个 subspec,可以只安装 SDK 的子集。
# Only pull in PWCore SDK
pod 'Phunware/Beta/Core'
# Only pull in PWLocation SDK, the `PWCore` is automatically pulled in as a dependency
pod 'Phunware/Beta/Location'
# Only pull in PWMapKit SDK, the `PWCore` and `PWLocation` are automatically pulled in as dependencies
pod 'Phunware/Beta/MapKit'
# Only pull in PWMessaging SDK, the `PWCore` is automatically pulled in as a dependency
pod 'Phunware/Beta/Messaging'
# Only pull in PWAds SDK, the `PWCore` is automatically pulled in as a dependency
pod 'Phunware/Beta/Ads'
http://phunware.github.io/maas-core-ios-sdk
首先使用以下代码导入:
Objective-C
#import <PWCore/PWCore.h>
Swift
import PWCore
然后使用以下代码在 application:didFinishLaunchingWithOptions:
方法中初始化:
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// These values can be found for your application in the MaaS portal (http://maas.phunware.com/clients).
[PWCore setApplicationID:<#(NSString *)#> accessKey:<#(NSString *)#> signatureKey:<#(NSString *)#> encryptionKey:@""];
...
}
Swift
func application(_ application: UIApplication, >didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// These values can be found for your application in the MaaS portal (http://maas.phunware.com/clients).
PWCore.setApplicationID(<#applicationID: String!#>, accessKey: <#String!#>, signatureKey: <#String!#>, encryptionKey: "")
...
}
http://phunware.github.io/maas-location-ios-sdk
首先,您必须确保正确设置了 PWCore
。
然后,待定
http://phunware.github.io/maas-location-ios-sdk
首先,您必须确保正确设置了 PWCore
。
然后,待定
http://phunware.github.io/maas-messaging-ios-sdk
首先,您必须确保正确设置了 PWCore
。
然后,待定
http://phunware.github.io/maas-ads-ios-sdk
首先,您必须确保正确设置了 PWCore
。
然后,待定
您理解并同意Phunware位于www.phunware.com/privacy的隐私政策。如果您使用Phunware的软件需要自己的隐私政策,您也同意在您的隐私政策中加入Phunware隐私政策的条款供您的最终用户参考。