title: ionic plugin open native popup handle back button cordova plugin
body: <p>guys please help me to find out solution 
  how to disable back button in ionic cordova app if native popup (android popup) is opened.</p>
  
  <p>I have used </p>
  
  <pre><code>$ionicPlatform.registerBackButtonAction(function(e) {
       // android hardware back button was hit
  }, 100);
  </code></pre>
  
  <p>Which is working fine in cordova app but a problem occurs when I call plugin and native popup opens I cant get the backButton event. 
  I am tried to override the backButton in native (plugin code) by using</p>
  
  <pre><code>@Override
      public void onBackPressed (final CallbackContext callbackContext){
          callbackContext.sendPluginResult(new PluginResult(Status.ERROR, "Back Button"));
      }
  </code></pre>
  
  <p>but it shows Method does not override from its superclass.
  Can anyone help me to find the solution of this.</p>