title: window.onbeforeunload doesn't trigger on Android Chrome [alt. solution?]
body: <p>I have developed a simple chat application where I am using the <code>$window.onbeforeunload</code> to notify other users when somebody closes the tab/browser (basically when the user leaves the room). </p>
  
  <p>Here is my code</p>
  
  <pre><code>$scope.onExit = function() {
          $scope.chatstatus.$add({
              status: $scope.getUsername + ' left'    
          });
      };
  
      $window.onbeforeunload =  $scope.onExit;
  </code></pre>
  
  <p>This is working absolutely fine on desktop browsers but not on the Android Chrome browser. The <code>onbeforeunload</code> function is not getting triggered at all. </p>
  
  <p>Please suggest a solution/<strong>workaround</strong>. Thanks.</p>
  
  <p><strong>EDIT</strong>: As mentioned in the comments that it is a known issue, kindly suggest a workaround if not the solution.</p>