Parse platform 在Buddy上使用Parse时,在哪里可以找到客户端密钥?
我是个新手,巴迪。在我的客户端iOS应用程序上,它在我的Parse platform 在Buddy上使用Parse时,在哪里可以找到客户端密钥?,parse-platform,key,client,buddy.com,Parse Platform,Key,Client,Buddy.com,我是个新手,巴迪。在我的客户端iOS应用程序上,它在我的applicationdFinishLaunching下的appDelegate中请求客户端密钥: Parse.setApplicationId("7a8sd9f078a9s07f0a8", clientKey: "your_client_key") 然而,我找不到这样的钥匙。在应用程序设置、安全性和密钥下,它提供以下功能: 应用程序ID 主钥匙 Mongo数据库URL 文件密钥 网钩键 然而,这些都不匹配 代码: 我更新了我们的:
applicationdFinishLaunching
下的appDelegate
中请求客户端密钥:
Parse.setApplicationId("7a8sd9f078a9s07f0a8", clientKey: "your_client_key")
然而,我找不到这样的钥匙。在应用程序设置、安全性和密钥下,它提供以下功能:
- 应用程序ID
- 主钥匙
- Mongo数据库URL
- 文件密钥
- 网钩键
也就是说,添加在仪表板中指定这四个键中任意一个键的功能,并强制任何传递键的客户端都匹配,这一功能即将实现。(参考:)我们能看到代码片段吗?stackoverflow.com/help/how-to-ask。并努力完成2分钟的现场参观。
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Parse.enableLocalDatastore()
Parse.setApplicationId("d602af8b-bba8-4f52-9c10-c367bcff49", clientKey: "https://parse.buddy.com/parse")
PFUser.enableAutomaticUser()
let defaultACL = PFACL();
// If you would like all objects to be private by default, remove this line.
//defaultACL.getPublicReadAccess = true
PFACL.setDefault(defaultACL, withAccessForCurrentUser: true)
if application.applicationState != UIApplicationState.background {
// Track an app open here if we launch with a push, unless
// "content_available" was used to trigger a background push (introduced in iOS 7).
// In that case, we skip tracking here to avoid double counting the app-open.
let preBackgroundPush = !application.responds(to: #selector(getter: UIApplication.backgroundRefreshStatus))
let oldPushHandlerOnly = !self.responds(to: #selector(UIApplicationDelegate.application(_:didReceiveRemoteNotification:fetchCompletionHandler:)))
var noPushPayload = false;
if let options = launchOptions {
noPushPayload = options[UIApplicationLaunchOptionsKey.remoteNotification] != nil;
}
if (preBackgroundPush || oldPushHandlerOnly || noPushPayload) {
PFAnalytics.trackAppOpened(launchOptions: launchOptions)
}
}
return true
}