cancel
Showing results for 
Search instead for 
Did you mean: 

hcpms hybrid app registration failed - Check your connection data error

Former Member
0 Kudos

Hi All,

I have created a hybrid offline app and deployed to emulator. On click of "register" button, i am getting an error

"Check your connection data". Registration failed pop up message. I have given the required details in index.html

var context = {

         "serverHost":  "hcpmsadmin-pxxxxxxtrial.hanatrial.ondemand.com", //Place your SMP 3.0 server name here

         "https": "true",

         "serverPort": "443",

         "user": "pxxxxxxx",       //user name for registration and the OData Endpoint

         "password": "xxxxxxxx",   //password for registration and the OData Endpoint

                                     //once set can be changed by calling sap.Logon.changePassword()

         "communicatorId": "REST",

         "passcode": "password",  //note hardcoding passwords and unlock passcodes are strictly for ease of use during development

                                  //once set can be changed by calling sap.Logon.managePasscode()

         "unlockPasscode": "password",

         "passcode_CONFIRM":"password",

         "ssoPasscode":"Password1"

    };

Rest Client - If i use the url,i am getting a status code 200.

http//hcpmsadmin-pxxxxxtrial.dispatcher.hanatrial.ondemand.com/odata/applications/latest/com.sap.nor...

Attaching screen shot.

Is there anything other configuration i am missing? How can i resolve the error in emulator.

Please help.

Thanks,

Divya

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

serverHost":  "hcpmsadmin-pxxxxxxtrial.hanatrial.ondemand.com

use hcpms  instead of hcpmsadmin

username: scn userid

password: scn pswd

You can also try on-boarding of the device from REST client but with POST method

On-Boarding a user on HCPms (HANA Cloud Platform mobile Services)

Regards,

JK

Former Member
0 Kudos

Hi Jitendra,

Should i use "hcpms" in index.html "smpServerHost".

When i try

http://hcpmsadmin-pxxxxxtrial.dispatcher.hanatrial.ondemand.com/odata/applications/latest/com.sap.no...

I am getting Status - 200.

How will i get a status 201.

Attaching screen shot. Please help.

Thanks,

Divya

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Should i use "hcpms" in index.html "smpServerHost".

YES

Please read that guide, everything is mentioned there. Modify the URL