From 5d520abd4cd54374fd63d6c1a4d8c5f8546cbf90 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 26 Dec 2023 15:26:57 -0800 Subject: [PATCH] RNTester iOS: internal profiling test setup (#42071) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42071 Proxying background handling to set up Meta internal test infra. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D52420805 fbshipit-source-id: a68645b7b630f976dfd9e863b0c985c738c658ec --- packages/rn-tester/RNTester/AppDelegate.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index 533a91d6e21..bb72dbd41dd 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -49,6 +49,14 @@ NSString *kBundlePath = @"js/RNTesterApp.ios"; return [super application:application didFinishLaunchingWithOptions:launchOptions]; } +- (void)applicationDidEnterBackground:(UIApplication *)application +{ +#ifdef RN_DISABLE_OSS_PLUGIN_HEADER + // FB-internal app backgrounding setup. + RCTFBAppInitApplicationDidEnterBackground(application); +#endif +} + - (NSDictionary *)prepareInitialProps { NSMutableDictionary *initProps = [NSMutableDictionary new];