This repository was archived by the owner on May 20, 2025. It is now read-only.

Description
Steps to Reproduce
- AppDelegate.m
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
return [CodePush bundleURL];
#endif
}
- index.js
global.Buffer = global.Buffer || require('buffer').Buffer;
global.process = require('process');
import 'react-native-gesture-handler';
import CodePush from 'react-native-code-push';
import App from './src/App';
import {AppRegistry} from 'react-native';
import {name as appName} from './app.json';
const options = {checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME};
AppRegistry.registerComponent(appName, () => CodePush(options)(App));
Actual Behavior
After double-click home and kill process, load from mainBundle again.
see the screen capture below:

Environment
- react-native-code-push version: 7.0.4
- react-native version: 0.66.4
- iOS version: 14.8.1
- Does this reproduce on a debug build or release build? release
- Does this reproduce on a simulator, or only on a physical device? physical device