capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

bug: Network unavailable after app put to sleep

Open playaz87 opened this issue 3 years ago • 1 comments

Bug Report

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 4.0.1
  @capacitor/core: 4.0.1
  @capacitor/android: 4.0.1
  @capacitor/ios: 4.0.1

Installed Dependencies:

  @capacitor/cli: 3.5.0
  @capacitor/ios: 3.5.0
  @capacitor/core: 3.5.0

Platform(s)

  • Android
  • iOS

Current Behavior

After an extended period in background the network is unavailable. All network connections time out. After window.location.reload() the network starts working again.

Expected Behavior

The network to work continuously.

Code Reproduction

Other Technical Details

npm --version output: 8.5.5

node --version output: v17.5.0

pod --version output (iOS issues only): 1.11.3

playaz87 avatar Aug 02 '22 05:08 playaz87

same problem with:

@capacitor/cli: 3.7.0
@capacitor/ios: 3.7.0
@capacitor/core: 3.7.0

fabioz23 avatar Sep 01 '22 12:09 fabioz23