@developer_tribe/react-native-comnyx 0.11.3 → 0.11.4

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/ios/Comnyx.swift CHANGED
@@ -15,6 +15,7 @@ class Comnyx: RCTEventEmitter {
15
15
 
16
16
  override init() {
17
17
  super.init()
18
+ resetBadge()
18
19
  self.comnyxMessaging = ComnyxMessaging(onNotificationReceived: { notification in
19
20
  let notificationData: [String: Any] = [
20
21
  "title": notification.request.content.title,
@@ -181,6 +182,10 @@ class Comnyx: RCTEventEmitter {
181
182
  resolve(true)
182
183
  }
183
184
 
185
+ private func resetBadge() {
186
+ UIApplication.shared.applicationIconBadgeNumber = 0
187
+ }
188
+
184
189
 
185
190
  }
186
191
 
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.VERSION = void 0;
7
7
  // This file is auto-generated. Do not edit manually.
8
- const VERSION = exports.VERSION = '0.11.3';
8
+ const VERSION = exports.VERSION = '0.11.4';
9
9
  //# sourceMappingURL=version.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  // This file is auto-generated. Do not edit manually.
4
- export const VERSION = '0.11.3';
4
+ export const VERSION = '0.11.4';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.11.3";
1
+ export declare const VERSION = "0.11.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-native-comnyx",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "description": "React Native chat component with integrated support panel, enabling real-time customer communication and efficient agent workflow management.",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/commonjs/index.js",
@@ -9,11 +9,11 @@
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": {
12
- "types": "./lib/typescript/module/src/index.d.ts",
12
+ "types": "./lib/typescript/src/index.d.ts",
13
13
  "default": "./lib/module/index.js"
14
14
  },
15
15
  "require": {
16
- "types": "./lib/typescript/commonjs/src/index.d.ts",
16
+ "types": "./lib/typescript/src/index.d.ts",
17
17
  "default": "./lib/commonjs/index.js"
18
18
  }
19
19
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- export const VERSION = '0.11.3';
2
+ export const VERSION = '0.11.4';