Getting Error "Response error NotAllowedInThisState 23" while upgrading to 2024R1 XPMobileSDK.js

We are trying to upgrade “XPMobileSDK.js” from 2019R3 to 2024R1. Earlier we were using “XPMobileSDK.js” and “XPMobileSDK.library.js” in 2019R3, However in 2024R1 looks like “XPMobileSDK.library.js” is removed (https://github.com/milestonesys/mipsdkmobile-web/commit/8fc8ddbe440cf4698d2d2075845f72626d67c5b2#diff-78a6365a9eb88887dc92f22b02c6746a5a342669060df9cb4d913928d96f8180 )

So, I added 2024R1 “XPMobileSDK.js” and its included minified dependencies but getting “Response error NotAllowedInThisState 23”.Please find attached console logs for both 2019R3(working) lib and 2024R1(getting error) lib

I have below queries:

  1. Going forward we do not need “XPMobileSDK.library.js” as it is removed from 2024R1?
  2. How do we test https://github.com/milestonesys/mipsdkmobile-web/tree/main/Samples and check “XPMobileSDK.js” integration code ?
  3. Need help with “Response error NotAllowedInThisState 23” error in 2024R1 lib

Tried updating some inputs like adding “LoginType” , etc. Still seeing same error in console. I have attached updated console logs here .

Hi Retty! First to address your questions.

  1. Like you observed, this is file no longer used.
  2. Please refer to our SDK reference with help on how to try out the Samples. MIP SDK Mobile Documentation
  3. This error could be because of differing versions of the server and client. We would strongly recommend to update the server and client to the same SDK version as it’s the only supported combination.

For additional resources on getting started, please refer to the links supplied in our README on Github: GitHub - milestonesys/mipsdkmobile-web: This repository contains samples that demonstrate MIP SDK Mobile Mobile Web (JavaScript) integration.