1

How to listen when user remove app from recent list( android and ios)

I have to store some data

AE0011
  • 149
  • 7
  • Just remove? or also kill app? – ProllyGeek Apr 04 '18 at 07:33
  • currently I want to listen in remove event and run some code, but kill event is good too – AE0011 Apr 04 '18 at 07:42
  • For this you will need background service – ProllyGeek Apr 04 '18 at 08:02
  • @ProllyGeek Could you explain more how to listen to that event on background service in react-native? – AE0011 Apr 04 '18 at 08:05
  • for example try this:https://github.com/jamesisaac/react-native-background-task – ProllyGeek Apr 04 '18 at 08:42
  • @ProllyGeek But this package just run some code at background...my main problem is how to listen when app remove from recent list and then I can run some code in call back of that event in background sevice – AE0011 Apr 04 '18 at 08:52
  • Yes, and there you will write native listeners for app close event (can be found on google dev, and apple dev) . For example because I am more into android: https://stackoverflow.com/questions/19568315/how-to-handle-code-when-app-is-killed-by-swiping-in-android – ProllyGeek Apr 04 '18 at 09:02

0 Answers0