No Hybrid App Message is Sent

Problem: After a new Hybrid App has been installed on a device, attempts to connect the device to SAP Mobile Server or to send a data change notification (DCN) result in an error: No workflow message is sent because no device is found to send the notification.

Explanation: When a new application and application connection are created and registered from SAP Control Center, by default there are no users associated with a device. Once a user invokes the Hybrid App from the device, the device user binds to the application connection, and the device user appears in the Application User tab in SAP Control Center.

In this case, the application and application user connection failed to bind when the user invoked the Hybrid App from the device, resulting in a message similar to:

{"id":"dcntest_test_001","success":false,"statusMessage":
"no workflow message is sent because no device is found to send the notification"
,"result":[{"id":"dcntest_test_data_1","success":true,"statusMessage":""}]} 

Solution: To initiate the binding manually, instruct the user to invoke a Hybrid App from the device, or run a messaging synchronization application on the device. This action should invoke a certain MBO query, which requires a SAP Mobile Platform user.

  1. Invoke any other SAP Mobile Platform application (for example, a client-initiated or server-initiated Hybrid App, or a native application), which maps an SAP Mobile Platform application connection to a messaging based synchronization user.
  2. Send the DCN with to":" < this user >.