How to handle app close in Lightning

Hi Team ,

If we want to exit application,we are handling the exit of the application using this.application.closeApp();
In Browser it works and shows a log as app has been closed,but when we try it on RDK devices ,its just staying in the same screen,please suggest any points

Hi Sharan!

Lightning itself doesn’t have any platform specific handling of what to do on a certain device. For every integration on a specific platform, be it RDK/Tizen/WebOS or something else this will need to be handled accordingly.

Sometimes the platform SDK, such as Firebolt or Metrological SDK will handle this for you. Or you might want to implement it yourself. Eitherway Lightning doesn’t provide platform specific handling.

In your case, can you help me understand what you are trying to do, are you:

  • Trying to close the browser? And refocus another open browser session? or;
  • Trying to reload another URL when you close the app? Like go to another destination?
  • Go to another application?

Also how are you planning to host the application? Are you going to host it yourself or are you using one of the app platforms?

This will help me guide you to the resources that you require to do that.