Search code examples
iosibm-mobilefirst

Unable to register device for push notification


I'm hitting:

error NSError * domain: @"com.ibm.mfp.push" - code: 5 0x0000000140986740

[0] (null) @"NSLocalizedDescription" : @"This version of the MobileFirst client SDK requires a minimal server version greater than IFIX 8.0.0.0-IF201701250919"

When registering device

enter image description here

I'm using this sample project: https://github.com/MobileFirst-Platform-Developer-Center/PushNotificationsCordova/tree/release80


Solution

  • As described in this blogpost, with the latest iFixes of MFP 8.0 , it is required that the server version be higher than the client SDK version. It is recommended that both the levels be equal. If this is not possible, at least have the client SDK run at a lower version than the server.

    For your testing, you should either update the server to the latest version or downgrade your client SDK to the lower version.

    To list the available client SDK versions you can use the following commands:

    npm view cordova-plugin-mfp-push versions
    
    npm view cordova-plugin-mfp versions
    

    From this list you can install the specific version of the Cordova plugin using the format:

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

    For example:

    cordova plugin add [email protected]