Call a web-service while browser / app closed by user

Hi guys.

I want to update a field isLoggenIn in mysql db , while user will closed browser or closed app.

I am using php as back-end and ionic v1 front-end. Any idea or suggestion will be appreciated.

Is there any event in ionic as we have in jquery $(window).bind(‘unload’, function(){} to bind browser close event.

Hi

Check ionic navcontroller lifecycle hooks or angular lifecycle hooks

Google it. Its great!

Tom

already googled that is why asked here dude…