talalmajali / react-native-countdown-component

React Native CountDown
MIT License
266 stars 233 forks source link

onFinish() is not triggered when app is in background #44

Closed Steve1820 closed 4 years ago

Steve1820 commented 5 years ago

Hey, great library!

The onFinish() prop is not triggered when the app is in the background.

Steve

talalmajali commented 4 years ago

@Steve1820 Hey, i think that we will have a different behavior between android and ios if i implement this, once the app went to the background you cannot execute any code for ios platform, on android you could do that for a few seconds after putting the app in the background, also on finish will be trigged when you come back again to the app