Instabug / Instabug-React-Native

In-app feedback and bug reporting tool for React Native
https://instabug.com/platforms/react-native
MIT License
312 stars 100 forks source link

Welcome Message Mode not disabling #1329

Open deelo55 opened 1 day ago

deelo55 commented 1 day ago

Steps to Reproduce the Problem

Expected Behavior

Welcome message mode does not get shown

Actual Behavior

Welcome message mode is shown

Instabug integration code

export function useInstabug() {
  useEffect(() => {
    Instabug.setWelcomeMessageMode(WelcomeMessageMode.disabled); // Disable welcome message
    Instabug.init({
      token: process.env.EXPO_PUBLIC_INSTABUG_TOKEN as string,
      invocationEvents: [InvocationEvent.shake, InvocationEvent.screenshot],
    });
    BugReporting.setReportTypes([ReportType.bug, ReportType.feedback]);
  }, []);
}

SDK Version

"instabug-reactnative": "14.0.0-1326154-SNAPSHOT",

Device Model

iPhone 15

ahmedAlaaInstabug commented 1 day ago

Hi @deelo55 , Thanks for reporting this issue. Can you please try to call setWelcomeMessageMode method after the init method?