Network capture

On both Android and iOS Bugsee is capable of capturing network events made either by your JS or platform code. On iOS we automatically install required hooks and no actions should be taken from user space. However, on Android, a single line should be added to the application bootstrap flow to let us intercept network events.

Android

    // ...

    import com.facebook.react.modules.network.OkHttpClientProvider;
    import com.bugsee.BugseeReactPackage;

    public class MainApplication extends Application implements ReactApplication {
        public MainApplication() {
            super();
            OkHttpClientProvider.setOkHttpClientFactory(BugseeReactPackage.getDefaultHttpFactory());    // <--- Add this line
        }

        // ...
    }