futurepress / react-native-static-server

HTTP static file server for React Native
MIT License
358 stars 183 forks source link

`keepAlive` doesn't work for iOS devices #99

Open stanhughes opened 3 years ago

stanhughes commented 3 years ago

In iOS when the application is suspended and returns to foreground there is a chunk error. This doesn't happen in Android and doesn't happen in the iOS simulator. However, it does occur with actual iOS devices.

Steps to repeat:

  1. Using a physical iOS device.
  2. Open a large complex React app in the react-native-static-server using react-native-webview.
  3. Suspend the app.
  4. Wait about 5 to 10 minutes.
  5. Return to the app.

Expected behavior: App should display at the same page at the time it was suspended. This is what happens with the Android device and in the iOS simulator.

Actual behavior: An error occurs that the chunk cannot be loaded.

Screen Shot 2020-10-30 at 3 39 55 PM

System: OS: macOS 10.15.6 CPU: (4) x64 Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz Memory: 91.50 MB / 32.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.12.0 - /usr/local/bin/node Yarn: 1.22.5 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.8.4 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 28, 29, 30 Build Tools: 28.0.3, 29.0.2, 30.0.1 System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 11.7/11E801a - /usr/bin/xcodebuild Languages: Java: 1.8.0_242 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.2 => 0.63.2 npmGlobalPackages: react-native: Not Found

ankuragrawal29 commented 2 months ago

got any solution for this?