react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

minimumBackgroundDuration not working for ON_NEXT_SUSPEND when there are permission prompts

Open triplehenry opened this issue 5 years ago • 1 comments

Steps to Reproduce

  1. Have code such as
codePush.sync({
    installMode: codePush.InstallMode.ON_NEXT_SUSPEND,
    minimumBackgroundDuration: 20,
})
  1. Trigger prompt such as for push notification, contacts, camera, etc. and then dismiss it.
  2. App will auto restart after 20 seconds from the time the prompt is shown.

Expected Behavior

Prompts shouldn't trigger the minimumBackgroundDuration counter and if it does, it should be canceled after dismissing it.

Actual Behavior

The app auto restarts despite not being in background. I was only able to test on iOS device but this could also be an issue on Android as well.

Environment

  • react-native-code-push version: "6.2.1"
  • react-native version: "0.61.5"

triplehenry avatar Jul 23 '20 17:07 triplehenry

Hi @triplehenry, Thank you for reporting!

I reproduced this issue. We'll investigate it a soon as possible. The issue's in a queue.

Krasavinigor avatar Jul 24 '20 13:07 Krasavinigor