notifly-sdk 2.3.6 → 2.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notifly-sdk",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/constant.js CHANGED
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.3.6';
1
+ export const SDK_VERSION = '2.3.7';
2
2
 
3
3
  export const NAMESPACE = {
4
4
  'EVENTID': '830b5f7b-e392-43db-a17b-d835f0bcab2b',
@@ -106,13 +106,13 @@ export async function showInAppMessage(data, openedInAppWebViewCount) {
106
106
  openedInAppWebViewCount.count = openedInAppWebViewCount.count - 1;
107
107
  logEvent(
108
108
  'survey_submit_button_click', {
109
- type: 'message_event',
110
- channel: 'in-app-message',
111
- button_name: message.button_name,
112
- campaign_id: data.campaign_id,
113
- notifly_message_id: data.notifly_message_id,
114
- notifly_extra_data: message.extra_data,
115
- },
109
+ type: 'message_event',
110
+ channel: 'in-app-message',
111
+ button_name: message.button_name,
112
+ campaign_id: data.campaign_id,
113
+ notifly_message_id: data.notifly_message_id,
114
+ notifly_extra_data: message.extra_data,
115
+ },
116
116
  null,
117
117
  true
118
118
  );
@@ -132,12 +132,16 @@ export async function showInAppMessage(data, openedInAppWebViewCount) {
132
132
  isVisible={true}
133
133
  transparent={true}
134
134
  onBackdropPress={() => {
135
- openedInAppWebViewCount.count = openedInAppWebViewCount.count - 1;
136
- modal.destroy();
135
+ if (modalProperties?.dismissCTATapped) {
136
+ openedInAppWebViewCount.count = openedInAppWebViewCount.count - 1;
137
+ modal.destroy();
138
+ }
137
139
  }}
138
140
  onBackButtonPress={() => {
139
- openedInAppWebViewCount.count = openedInAppWebViewCount.count - 1;
140
- modal.destroy();
141
+ if (modalProperties?.dismissCTATapped) {
142
+ openedInAppWebViewCount.count = openedInAppWebViewCount.count - 1;
143
+ modal.destroy();
144
+ }
141
145
  }}
142
146
  backdropOpacity={backdropOpacity}
143
147
  style={webViewProps.modalStyle}