SDL will send OnAppRegistered:
OnFindApplications notification via the users request.Regarding data resumption:
Data resumption means that an application may request to restore data used in the previous ignition cycle after an Unexpected Disconnect.
Unexpected Disconnect or Ignition Off. On the fourth Ignition On, SDL clears all corresponding application-related data used for resumption.Unexpected Disconnect or Ignition Off.BC.OnResumeAudioSource.If the application resumes data successfully:
OnAppRegistered with resumeVrGrammars:true to notify the HMI that VRGrammars must be resumed. On this event, the HMI must restore the application related VRGrammars for the appID received via an OnAppRegistered notification.OnAppRegistered notification:AddCommand(Menu + VR)AddSubMenuCreateInteractionChoiceSetSetGlobalPropertiesSubscribeButtonSubscribeVehicleDataSubscribeWayPointsCreateWindowGetInteriorVehicleDataIf the HMI responds with any kind of error, does not respond to any requests or responds with success result code but fails to subscribe to interior vehicle data for an RC module sent during resumption, SDL must revert already restored data with appropriate RPCs:
* DeleteCommand
* DeleteSubMenu
* DeleteInteractionChoiceSet
* ResetGlobalProperties
* UnsubscribeButton
* UnsubscribeVehicleData
* UnsubscribeWayPoints
* DeleteWindow
* GetInteriorVehicleData(moduleType, moduleID, subscribe=false)
If the application does NOT resume data successfully:
OnAppRegistered with resumeVrGrammars:false or no resume parameter at all.VRGrammars for the application.The application is not given a valid HMI state or registration response by SDL until the resumption process is complete, so any notifications directed at the application (such as BC.OnSystemRequest) should not be sent until the app is listed in a BC.UpdateAppList request.
applications parameter.VRGrammars for the vrSynonyms parameter, and arrange them for the user to be able to use via voice recognition. Note: The VR commands to activate an application must be accessible when viewing a different active application or the list of registered applications.OnAppActivated notification to SDL when the user activates an app via the UI or VR. <icon> via OnAppRegistered notification. <icon> at OnAppRegistered notification. OnAppRegistered with a hash of the usb serial number as the device id.OnAppRegistered with a hash of the device's mac address as the device id.SDL Apps that are using the websocket transport adapter will send OnAppRegistered after the user has activated the app and the websocket connection is opened. The HMI should not use OnAppRegistered for updating the available apps in the app list. BC.UpdateAppList should be used for updating the app list.
| Name | Type | Mandatory | Additional |
|---|---|---|---|
| application | Common.HMIApplication | true | |
| ttsName | Common.TTSChunk | false | array: true minsize: 1 maxsize: 100 |
| vrSynonyms | String | false | array: true minsize: 1 maxsize: 100 maxlength: 40 |
| resumeVrGrammars | Boolean | false | |
| priority | Common.AppPriority | false |
Parameter vrSynonyms must not interfere with any name of previously registered applications from the same device.
{ "jsonrpc": "2.0", "method": "BasicCommunication.OnAppRegistered", "params": { "application": { "appName": "TryMe", "ngnMediaScreenAppName": "TryMe", "deviceInfo": { "name": "GT-I9300", "id": "1563462", "transportType": "BLUETOOTH" }, "policyAppID": "123", "appID": 65540, "hmiDisplayLanguageDesired": "ES-ES", "isMediaApplication": false }, "resumeVrGrammars": true } }
{ "jsonrpc": "2.0", "method": "BasicCommunication.OnAppRegistered", "params": { "application": { "appID": 845030685, "appName": "SDL App", "appType": [ "DEFAULT" ], "cloudConnectionStatus": "CONNECTED", "dayColorScheme": { "backgroundColor": { "blue": 98, "green": 78, "red": 36 }, "primaryColor": { "blue": 248, "green": 246, "red": 242 }, "secondaryColor": { "blue": 98, "green": 78, "red": 36 } }, "deviceInfo": { "id": "1d92c1e33853c4566641d26e7043e7646da2a4d4a2fa0f99687fdf75f7f40a93", "isSDLAllowed": true, "name": "ws://192.168.1.69:3000/", "transportType": "CLOUD_WEBSOCKET" }, "hmiDisplayLanguageDesired": "EN-US", "isCloudApplication": true, "isMediaApplication": false, "ngnMediaScreenAppName": "SDLApp", "nightColorScheme": { "backgroundColor": { "blue": 35, "green": 17, "red": 2 }, "primaryColor": { "blue": 248, "green": 246, "red": 242 }, "secondaryColor": { "blue": 98, "green": 78, "red": 36 } }, "policyAppID": "123456", "requestSubType": [], "requestType": [], "vrSynonyms": [ "SDLApp" ] }, "priority": "NONE", "vrSynonyms": [ "SDLApp" ] } }