mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-01 13:40:42 +00:00
✨ Add setThresholdForReshowingSurveyAfterDismiss API for Android
This commit is contained in:
parent
d03db394c0
commit
5db2aabf0c
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user