@qusaieilouti99/call-manager 0.1.13 → 0.1.14

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.
@@ -7,7 +7,9 @@ import android.util.Log
7
7
 
8
8
  class CallNotificationActionReceiver : BroadcastReceiver() {
9
9
  override fun onReceive(context: Context, intent: Intent) {
10
+
10
11
  val callId = intent.getStringExtra("callId") ?: return
12
+ Log.d("CallNotificationActionReceiver", "onReceive called with action=${intent.action}, callId=$callId")
11
13
  val action = intent.action
12
14
 
13
15
  val app = context.applicationContext as? com.facebook.react.ReactApplication
@@ -17,12 +19,15 @@ class CallNotificationActionReceiver : BroadcastReceiver() {
17
19
 
18
20
  when (action) {
19
21
  "com.qusaieilouti99.callmanager.ANSWER_CALL" -> {
22
+ Log.d("CallNotificationActionReceiver", "Answer action received")
20
23
  bringAppToForeground(context)
21
24
  }
22
25
  "com.qusaieilouti99.callmanager.DECLINE_CALL" -> {
26
+ Log.d("CallNotificationActionReceiver", "Decline action received")
23
27
  module?.endCall(callId)
24
28
  }
25
29
  }
30
+
26
31
  // Cancel notification and stop ringtone
27
32
  CallNotificationHelper(context).cancelIncomingCallNotification()
28
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qusaieilouti99/call-manager",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "call manager",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",