This function is used to register an app for events with a unique key.Registering an app can be used for messaging communication between two apps from the same toolbar/engine, or from web page to app.
Notes:
- The registered app should remain open in order to receive messages.
- This function should be used along with the "SendMessage ()" function.
