File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -672,6 +672,22 @@ public void clearLogs() {
672
672
}
673
673
}
674
674
675
+ /**
676
+ * Shows survey with a specific token.
677
+ * Does nothing if there are no available surveys with that specific token.
678
+ * Answered and cancelled surveys won't show up again.
679
+ *
680
+ * @param surveyToken A String with a survey token.
681
+ */
682
+ @ ReactMethod
683
+ public void showSurveyWithToken (String surveyToken ) {
684
+ try {
685
+ Instabug .showSurvey (surveyToken );
686
+ } catch (Exception e ) {
687
+ e .printStackTrace ();
688
+ }
689
+ }
690
+
675
691
/**
676
692
* Sets user attribute to overwrite it's value or create a new one if it doesn't exist.
677
693
*
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ module.exports = {
104
104
} ,
105
105
106
106
/**
107
- * Shows Survey with a specific token.
107
+ * Shows survey with a specific token.
108
108
* Does nothing if there are no available surveys with that specific token.
109
- * Answered and canceled surveys won't show up again.
109
+ * Answered and cancelled surveys won't show up again.
110
110
* @param {string } surveyToken - A String with a survey token.
111
111
*
112
112
*/
You can’t perform that action at this time.
0 commit comments