Да, вы можете сделать в Ионном, вы можете видеть .run Функция в ионной внутри, что вы можете написать функцию для приложения, что она должна делать, когда она открывается.
app.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
// Don't remove this line unless you know what you are doing. It stops the viewport
// from snapping when text inputs are focused. Ionic handles this internally for
// a much nicer keyboard experience.
cordova.plugins.Keyboard.disableScroll(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
// write your function for capturing an event and make it use where ever you need.
});
})
.run будет работать автоматически, когда приложение открыто и установить все, что нужно для этого приложения, чтобы попытаться сделать вам ваши вещи внутри него так, что сделает вас легким для вас поручает