diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 54c442c..3538bd2 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -1311,6 +1311,22 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { } } + /** + * Set after how many sessions should the dismissed survey would show again. + * + * @param sessionsCount number of sessions that the dismissed survey will be shown after. + * @param daysCount number of days that the dismissed survey will show after + * + */ + @ReactMethod + public void setThresholdForReshowingSurveyAfterDismiss(int sessionsCount, int daysCount) { + try { + Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionsCount, daysCount); + } catch (Exception e) { + e.printStackTrace(); + } + } + /** * Set whether new in app notification received will play a small sound notification * or not (Default is {@code false})