ios - 无法使用阿拉伯名称注册用户

标签 ios applozic

我在使用阿拉伯名称注册用户时收到失败的响应。

请求:

PARAM_STRING USER_REGISTRATION :: {
  "contactNumber": "",
  "userTypeId": 0,
  "authenticationTypeId": 0,
  "notificationMode": 0,
  "deviceType": 4,
  "deviceApnsType": 1,
  "userId": "محمد رضوان رشيد",
  "password": "",
  "imageLink": "<image url>",
  "emailVerified": 1,
  "unreadCountType": 1,
  "appVersionCode": "106",
  "prefContactAPI": 2,
  "emailId": "محمد رضوان رشيد",
  "displayName": "محمد رضوان رشيد",
  "applicationId": "<APPLICATION_ID>"
}

回应:

enter image description here

API错误:

CREATE ACCOUNT - {
  "status": "error",
  "errorResponse": [
    {
      "errorCode": "AL-I-01",
      "description": "internal server error",
      "displayMessage": "could not extract ResultSet"
    }
  ],
  "generatedAt": 1473527281694
}

最佳答案

发生这种情况是因为

"userId": "محمد رضوان رشيد"

显示名称支持阿拉伯名称

"displayName": "محمد رضوان رشيد"

每个用户的 UserId 应该是唯一的,并且应该是字母数字,不包含任何空格、+、*、$ 或任何特殊字符。

关于ios - 无法使用阿拉伯名称注册用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39434131/

相关文章:

android - 比较 Layer、Applozic、Quickblox 和 SendBird,以便在 Android 应用程序中快速发送 WhatsApp 消息

android - Applozic ConversationActivity 到 fragment

iOS 7 SpriteKit - 创建游戏菜单/按钮(场景与更多 View Controller )

ios - WKWebView 未在 swift 4 xcode 10 中初始化

ios - 本地通知在错误的时间触发

ios - 在 iOS Applozic 聊天 sdk 中隐藏附加按钮

android - 应用程序 : How to show the user first unread message rather than latest unread message?

ios - 如何在applozic框架中自动重新加载聊天消息/聊天列表

ios - 如何计算iOS中应用程序在后台花费的时间

iphone - UIWebView 崩溃