Ionic2 device backbutton


When another modal window/ action sheet or another pop up is already opened. and when try to conformation through another alert The app will be freezed. However this will also freeze in case double back as it will open two alerts simultaneously.If menu is opened, please assist regarding