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


#1

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.


#2

Hi

Check ionic navcontroller lifecycle hooks or angular lifecycle hooks

Google it. Its great!

Tom


#3

already googled that is why asked here dude…