From 0cc091b6c9ea4544473eef8d7dff36371aff32b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Mon, 23 May 2016 17:05:03 -0700 Subject: [PATCH 1/3] Update errors.mdown --- en/common/errors.mdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/en/common/errors.mdown b/en/common/errors.mdown index 8e8d55eec..e981db1b1 100644 --- a/en/common/errors.mdown +++ b/en/common/errors.mdown @@ -156,8 +156,9 @@ The following is a list of all the error codes that can be returned by the Parse | `InefficientQueryError` | 154 | An inefficient query was rejected by the server. Refer to the Performance Guide and slow query log. | | `RequestLimitExceeded` | 155 | This application has exceeded its request limit. Please retry in one minute or raise your request limit at https://parse.com/account. Check error message for more details. | | `TemporaryRejectionError` | 159 | An application's requests are temporary rejected by the server. | +| `DatabaseNotMigratedError` | 428 | You should migrate your database as soon as possible. | -If your requests are rejected with a 155 error code, your application may be [exceeding its request limit](/plans/faq#request-limit-exceeded). You can learn more about [how the request limit is calculated in the Pricing FAQ](/plans/faq#how-are-requests-per-second-calculated). If waiting one minute or [increasing the request limit](/plans/faq#increasing-request-limit) does not resolve the issue, [please file a bug report](https://parse.com/help#report). If your requests are being rejected with a 159 error code, [please file a bug report](https://parse.com/help#report) for further instructions on how to resolve the issue. +If your requests are rejected with a 155 error code, your application may be [exceeding its request limit](/plans/faq#request-limit-exceeded). You can learn more about [how the request limit is calculated in the Pricing FAQ](/plans/faq#how-are-requests-per-second-calculated). If waiting one minute or [increasing the request limit](/plans/faq#increasing-request-limit) does not resolve the issue, [please file a bug report](https://parse.com/help#report). If your requests are being rejected with a 159 error code, [please file a bug report](https://parse.com/help#report) for further instructions on how to resolve the issue. If your requests are rejected with a 428 error code, please [migrate your database](https://parse.com/migration) as soon as possible. ## Other issues From e0c52caf3136cd68d9cd435b41c690e541834414 Mon Sep 17 00:00:00 2001 From: nitrag Date: Fri, 25 Nov 2016 14:21:22 -0500 Subject: [PATCH 2/3] Update Init for Facebook Updating for swift 3 --- en/ios/users.mdown | 49 ++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/en/ios/users.mdown b/en/ios/users.mdown index a9f3fcae0..2d928d755 100644 --- a/en/ios/users.mdown +++ b/en/ios/users.mdown @@ -485,10 +485,19 @@ There's also two code changes you'll need to make. First, add the following to y import FBSDKCoreKit import ParseFacebookUtilsV4 -// AppDelegate.swift -func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { - Parse.setApplicationId("parseAppId", clientKey:"parseClientKey") - PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions) +// AppDelegate.swift (Swift 3) +func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + + //your other app delegate stuff + + // Initialize Parse. + let configuration = ParseClientConfiguration { + $0.server = "https://parse.myserver.com/1" + $0.applicationId = "myapplicationid" + $0.isLocalDatastoreEnabled = true //if desired + } + Parse.initialize(with: configuration) + PFFacebookUtils.initializeFacebook(applicationLaunchOptions: launchOptions) } ``` @@ -510,20 +519,26 @@ Next, add the following handlers in your app delegate. } ``` ```swift -func application(application: UIApplication, - openURL url: NSURL, - sourceApplication: String?, - annotation: AnyObject?) -> Bool { - return FBSDKApplicationDelegate.sharedInstance().application(application, - openURL: url, - sourceApplication: sourceApplication, - annotation: annotation) +public func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { + return FBSDKApplicationDelegate.sharedInstance().application( + app, + open: url as URL!, + sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as! String, + annotation: options[UIApplicationOpenURLOptionsKey.annotation] + ) } - - -//Make sure it isn't already declared in the app delegate (possible redefinition of func error) -func applicationDidBecomeActive(application: UIApplication) { - FBSDKAppEvents.activateApp() +public func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { + return FBSDKApplicationDelegate.sharedInstance().application( + application, + open: url as URL!, + sourceApplication: sourceApplication, + annotation: annotation + ) +} +//You probably already have the following function created by the AppDelegate template. Just add the FB function +func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + FBSDKAppEvents.activateApp() } ``` From e728011463e609f4ae059eff83aa70a2c45b9530 Mon Sep 17 00:00:00 2001 From: nitrag Date: Mon, 28 Nov 2016 11:45:05 -0500 Subject: [PATCH 3/3] Fix character encoding for some reason > was encoded to > --- en/ios/users.mdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/ios/users.mdown b/en/ios/users.mdown index 2d928d755..a8d92658f 100644 --- a/en/ios/users.mdown +++ b/en/ios/users.mdown @@ -486,7 +486,7 @@ import FBSDKCoreKit import ParseFacebookUtilsV4 // AppDelegate.swift (Swift 3) -func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { +func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { //your other app delegate stuff