私は最近、ParseからiOSアプリケーションをAzureでホストされているParse Serverに移行しました。ここでParse Server(Azureによってホストされています)で匿名ログインがサポートされていませんか?
[Error]: This authentication method is unsupported. (Code: 252, Version: 1.14.2) Optional(Error Domain=Parse Code=252 "This authentication method is unsupported." UserInfo={code=252, temporary=0, error=This authentication method is unsupported., NSLocalizedDescription=This authentication method is unsupported.})
私はAppDelegate(didFinishLaunchingWithオプション)で使用していますログインシーケンスです:すべては私が匿名ユーザーでログインしPFAnonymousUtilsを使用する場合、私はこのエラーを取得することを除いて期待どおりに動作しているように見えます:
let configuration = ParseClientConfiguration {
$0.applicationId = "my-awesome-app-id"
$0.server = "https://awesomeapp.azurewebsites.net/parse/"
}
Parse.initialize(with: configuration)
let currentUser = PFUser.current()
if currentUser == nil {
PFAnonymousUtils.logIn {
(user: PFUser?, error: Error?) -> Void in
if error != nil || user == nil {
//See error above
print(error)
} else {
user?.saveInBackground()
}
}
}
私は、匿名ユーザーがParse Serverでサポートされていることを知っています。そのため、このエラーはわかりません。 AzureでParse Serverの設定を変更する必要がありますか?