1 Reply Latest reply on Feb 2, 2016 11:10 PM by Mark Nongkhlaw

    Rho.Application.quit does not work in WP8.x device

    Mark Nongkhlaw

      My call to Rho.Application.quit in JS, like so in the same .erb does not work in WP8.x device :

       

      <head>

      <script type="text/javascript">

      function quit_app(){

         Rho.Application.quit();

      }

        </script>

      </head>

        <div data-role="header" data-position="inline">

          <h1>My App</h1>

        </div>

        <div data-role="content">

          <ul data-role="listview"> 

            <li><a href="#" onclick="quit_app()">Exit My App</a></li> 

          </ul>

        </div>

      </div>

       

      However, it works in Rhosimulator.

      And using Ruby in a controller instead like below also does not work :

       

         def quit_app

          Rho::Application.quit

         end

       

      Any tips/suggestions/workarounds for WP8.x ?