Skip to Content

How to configure push notification with Asset Manager 2.0

Dear Expert,

I have followed those intructions: SAP Asset Manager Installation Guide chapter 5.1

I am getting a error 400 when invoking the SCPms Push Notification API with the following parameters:

POST: https://mobile-xxx.eu3.hana.ondemand.com/restnotification/application/com.xxx.meridia.swim.AssetManager

{ "notification": { "alert": "{\"title-loc-key\":\"WO_TITLE_KEY\",\"title-loc-args\": [\"4000020\"],\"loc-key\":\"WO_BODY_KEY\",\"loc-args\": [\"4000020\"]}", "customParameters": { "apns.customValues": "{\"ObjectType\":\"WorkOrder\"}" } }, "users": ["S0009485XXX"] }

The json data seems incorrect. it is the output of the /SMFND/CL_CORE_OTRIG_CPMS_PUSH build_json_data()

If I change it to:

{ "alert": "{\"title-loc-key\":\"WO_TITLE_KEY\",\"title-loc-args\": [\"4000020\"],\"loc-key\":\"WO_BODY_KEY\",\"loc-args\": [\"4000020\"]}", "customParameters": { "apns.customValues": "{\"ObjectType\":\"WorkOrder\"}" } }

it works.

Thanks for help.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 22 at 05:14 PM

    Hi Didier,

    You mentioned you follow the steps in

    SAP Asset Manager Installation Guide chapter 5.1

    Since you mentioned when you remove the user, the notification went through. It may be sometimes to do with the user setup.

    For Step 3b, What did you set the SCPMS_WITH_SAP_USER_ID parameter to?

    Regards,

    Chung

    Add comment
    10|10000 characters needed characters exceeded