diff options
author | Andrei Melnik <AMelnik@luxoft.com> | 2015-02-03 17:32:22 +0200 |
---|---|---|
committer | Aleksandr Galiuzov <AGaliuzov@luxoft.com> | 2015-02-23 13:57:12 +0200 |
commit | 79a89d7eb4e2ca9a4627a462160e6ed01a575414 (patch) | |
tree | 394d862620d957a5b57a1ec764abc349bc9a733f /src/components/HMI | |
parent | 93a7918a1d30f7fe878eff633c8ec73d834c30dc (diff) | |
download | sdl_core-79a89d7eb4e2ca9a4627a462160e6ed01a575414.tar.gz |
APPLINK-11155: SD.ActivateApp response handler fix
Diffstat (limited to 'src/components/HMI')
-rw-r--r-- | src/components/HMI/ffw/BasicCommunicationRPC.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/HMI/ffw/BasicCommunicationRPC.js b/src/components/HMI/ffw/BasicCommunicationRPC.js index 6890b83e7f..bd31060bc8 100644 --- a/src/components/HMI/ffw/BasicCommunicationRPC.js +++ b/src/components/HMI/ffw/BasicCommunicationRPC.js @@ -213,7 +213,7 @@ FFW.BasicCommunication = FFW.RPCObserver } } - if (response.result.method == "SDL.ActivateApp") { + if (response.result.method == "SDL.ActivateApp" && response.result.code === 0) { Em.Logger.log("SDL.ActivateApp: Response from SDL!"); @@ -270,6 +270,13 @@ FFW.BasicCommunication = FFW.RPCObserver delete SDL.SDLModel.activateAppRequestsList[response.id]; } + } else if (response.result.method == "SDL.ActivateApp" && response.result.code != 0) { + Em.Logger.error("SDL.ActivateApp: Wrong Response from SDL!"); + } + + if ("error" in response && "data" in response.error && "method" in response.error.data && response.error.data.method == "SDL.ActivateApp" && response.result.code === 15) { + + SDL.PopUp.create().appendTo('body').popupActivate("Activation FAILED! Application not registered!"); } if (response.result.method == "SDL.GetListOfPermissions") { |