ozhanli
ozhanli

Reputation: 1496

Ionic Framework Lifecycle

Is there Ionic application lifecycle like Android. I am asking this because I am developing an video application and while my application went background video still plays like android service or I push hardware backbutton video still plays.

Upvotes: 0

Views: 2313

Answers (1)

TechnoCrat
TechnoCrat

Reputation: 708

Ionic framwork lets you develop the beautiful, hybrid mobile apps using open source front-end SDK and HTML5.

you can refer lifecycle events from http://ionicframework.com/docs/api/directive/ionView/.

even you can handle one from given event to stop application from running when application goes into background.

You need to handle pause event to stop executing till application again resumed. again at the time of resume you can use resume event to again initialize.

Upvotes: 2

Related Questions