rns-nativecall 1.1.6 → 1.1.8

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.
@@ -117,6 +117,14 @@ object NativeCallManager {
117
117
  }
118
118
  }
119
119
 
120
+ fun refreshNotificationOnly(
121
+ context: Context,
122
+ uuid: String,
123
+ ) {
124
+ val manager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
125
+ manager.cancel(uuid.hashCode())
126
+ }
127
+
120
128
  fun dismissIncomingCall(
121
129
  context: Context,
122
130
  uuid: String?,
@@ -12,11 +12,11 @@ class UnlockReceiver : BroadcastReceiver() {
12
12
  ) {
13
13
  if (intent.action == Intent.ACTION_USER_PRESENT) {
14
14
  val activeData = NativeCallManager.getCurrentCallData()
15
- if (activeData != null) {
16
- val uuid = activeData["callUuid"] ?: "" // Use map access [] instead of getString
17
- NativeCallManager.refreshNotificationOnly(context, uuid)
18
- NativeCallManager.handleIncomingPush(context, activeData)
19
- }
15
+ // if (activeData != null) {
16
+ // val uuid = activeData["callUuid"] ?: "" // Use map access [] instead of getString
17
+ // NativeCallManager.refreshNotificationOnly(context, uuid)
18
+ // NativeCallManager.handleIncomingPush(context, activeData)
19
+ // }
20
20
  }
21
21
  }
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rns-nativecall",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "High-performance React Native module for handling native VoIP call UI on Android and iOS.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",