无法为推送通知注册设备

时间:2017-03-23 11:46:15

标签: ios ibm-mobilefirst

我正在打击:

  

错误NSError * domain:@“com.ibm.mfp.push” - 代码:   5 0x0000000140986740

     

[0](null)@“NSLocalizedDescription”:@“此版本的   MobileFirst客户端SDK需要最小的服务器版本   IFIX 8.0.0.0-IF201701250919“

注册设备时

enter image description here

我正在使用这个示例项目: https://github.com/MobileFirst-Platform-Developer-Center/PushNotificationsCordova/tree/release80

1 个答案:

答案 0 :(得分:4)

如本blogpost所述,使用MFP 8.0的最新iFix,要求服务器版本高于客户端SDK版本。建议两个级别相等。如果无法做到这一点,至少让客户端SDK运行的版本低于服务器版本。

对于测试,您应该将服务器更新到最新版本,或者将客户端SDK降级到较低版本。

要列出可用的客户端SDK版本,您可以使用以下命令:

npm view cordova-plugin-mfp-push versions

npm view cordova-plugin-mfp versions

从此列表中,您可以使用以下格式安装特定版本的Cordova插件:

cordova plugin add cordova-plugin-mfp@<version id>

例如:

cordova plugin add cordova-plugin-mfp@8.0.2016110713
相关问题