File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -1144,6 +1144,22 @@ public void setSuccessDialogEnabled(boolean enabled) {
1144
1144
}
1145
1145
}
1146
1146
1147
+ /**
1148
+ * Set whether new in app notification received will play a small sound notification
1149
+ * or not (Default is {@code false})
1150
+ *
1151
+ * @param shouldPlaySound desired state of conversation sounds
1152
+ * @since 4.1.0
1153
+ */
1154
+ @ ReactMethod
1155
+ public void setEnableInAppNotificationSound (boolean shouldPlaySound ) {
1156
+ try {
1157
+ mInstabug .setEnableInAppNotificationSound (shouldPlaySound );
1158
+ } catch (Exception e ) {
1159
+ e .printStackTrace ();
1160
+ }
1161
+ }
1162
+
1147
1163
private InstabugCustomTextPlaceHolder .Key getStringToKeyConstant (String key ) {
1148
1164
switch (key ) {
1149
1165
case SHAKE_HINT :
Original file line number Diff line number Diff line change @@ -788,6 +788,19 @@ module.exports = {
788
788
Instabug . setSuccessDialogEnabled ( enabled ) ;
789
789
} ,
790
790
791
+ /**
792
+ * Set whether new in app notification received will play a small sound notification
793
+ * or not (Default is {@code false})
794
+ *
795
+ * @param shouldPlaySound desired state of conversation sounds
796
+ * @since 4.1.0
797
+ */
798
+ setEnableInAppNotificationSound : function ( shouldPlaySound ) {
799
+ if ( Platform . OS === 'android' ) {
800
+ Instabug . setEnableInAppNotificationSound ( shouldPlaySound ) ;
801
+ }
802
+ } ,
803
+
791
804
/**
792
805
* The event used to invoke the feedback form
793
806
* @readonly
You can’t perform that action at this time.
0 commit comments