IBM MobileFirst iOS 客户端无法 register/recieve 令牌
IBM MobileFirst iOS client cannot register/recieve token
我正在执行从 IBM MobileFirst 中的操作控制台下载的样本 iOS 应用程序。
在单击按钮并从服务器触发令牌请求时,我收到 Application does not exist 错误:
2017-10-23 15:17:52.671942+0200 MFPStarterIOSSwift[10038:1206818] WL_REQUEST
Did not receive an access token from server: Optional(Error Domain=WL_AUTH Code=403 "Application doesn't exist" UserInfo={networkMetadata={
"$bytesSent" = 652;
"$category" = network;
"$outboundTimestamp" = 1508764672641;
"$path" = "http://localhost:9080/mfp/api/registration/v1/self";
"$requestMethod" = POST;
"$trackingid" = "7FEFBF12-0766-4427-920E-30E6BA3314DA";
}, NSLocalizedDescription=Application doesn't exist})
我的服务器是 运行,我可以通过 android 模拟器成功连接到它。但是XcodeiPhone模拟器returns出现上述错误。
对于我输入的 mfpclient.plist 设置:
...
<plist version="1.0">
<dict>
<key>protocol</key>
<string>http</string>
<key>host</key>
<string>localhost</string>
<key>port</key>
<string>9080</string>
<key>wlServerContext</key>
<string>/mfp/</string>
...
</dict>
</plist>
MobileFirst 服务器 运行 与 Xcode 在同一台机器上,模拟器是 运行...
您的应用程序未在 MFP 操作控制台中注册,这导致客户端应用程序 Application doesn't exist
失败。
为了解决这个问题,请按照 here 中提到的步骤注册您的应用程序。
我正在执行从 IBM MobileFirst 中的操作控制台下载的样本 iOS 应用程序。
在单击按钮并从服务器触发令牌请求时,我收到 Application does not exist 错误:
2017-10-23 15:17:52.671942+0200 MFPStarterIOSSwift[10038:1206818] WL_REQUEST
Did not receive an access token from server: Optional(Error Domain=WL_AUTH Code=403 "Application doesn't exist" UserInfo={networkMetadata={
"$bytesSent" = 652;
"$category" = network;
"$outboundTimestamp" = 1508764672641;
"$path" = "http://localhost:9080/mfp/api/registration/v1/self";
"$requestMethod" = POST;
"$trackingid" = "7FEFBF12-0766-4427-920E-30E6BA3314DA";
}, NSLocalizedDescription=Application doesn't exist})
我的服务器是 运行,我可以通过 android 模拟器成功连接到它。但是XcodeiPhone模拟器returns出现上述错误。
对于我输入的 mfpclient.plist 设置:
...
<plist version="1.0">
<dict>
<key>protocol</key>
<string>http</string>
<key>host</key>
<string>localhost</string>
<key>port</key>
<string>9080</string>
<key>wlServerContext</key>
<string>/mfp/</string>
...
</dict>
</plist>
MobileFirst 服务器 运行 与 Xcode 在同一台机器上,模拟器是 运行...
您的应用程序未在 MFP 操作控制台中注册,这导致客户端应用程序 Application doesn't exist
失败。
为了解决这个问题,请按照 here 中提到的步骤注册您的应用程序。