- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6
 
Native app starts plugin - iOS #721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            yousif-bugsnag
  merged 10 commits into
  integration/rn-native-app-starts
from
PLAT-14865/native-app-start-plugin-ios
  
      
      
   
  Oct 14, 2025 
      
    
                
     Merged
            
            Native app starts plugin - iOS #721
                    yousif-bugsnag
  merged 10 commits into
  integration/rn-native-app-starts
from
PLAT-14865/native-app-start-plugin-ios
  
      
      
   
  Oct 14, 2025 
              
            Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
          Browser bundle sizeNPM build 
 CDN build 
 Code coverage
 Total: 
 Generated against 2839365 on 8 October 2025 at 15:46:22 UTC  | 
    
              
                    lemnik
  
              
              approved these changes
              
                  
                    Oct 14, 2025 
                  
              
              
            
            
| 
           force-merging due to a known issue with Expo Android tests (fixed in the target branch)  | 
    
89d7323
      into
      
  
    integration/rn-native-app-starts
  
    
        104 of 109 checks passed
      
      
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Goal
Adds the Native App Starts plugin implementation for iOS, along with the associated e2e test setup.
Design
The plugin itself (
BugsnagReactNativeAppStartPlugin.mm) follows the same approach as the Android implementation, using span callbacks to track the start and end of view load spans and span conditions to block the current view load span until the JavaScript app start span has ended.However on iOS some additional changes are required for Cocoa Performance's view load instrumentation to work.
This is because React Native assigns the view directly to the ViewController's
viewproperty, which bypasses theUIVIewControllerlifecycle methods (specificallyloadView) that the view load instrumentation hooks into.These changes are implemented in the test fixture via a custom view controller (
BSGViewController) added toBugsnagTestUtils, along with some additional modifications to the test fixture'sAppDelegatefile to make it compatible with the native view load instrumentation:createRootViewControllerto return a custom view controller implementationsetRootViewor equivalent to set the view in a way that triggersloadViewto be called.Testing
Covered by CI