@qusaieilouti99/call-manager 0.1.9 → 0.1.11

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.
@@ -1,5 +1,6 @@
1
1
  package com.qusaieilouti99.callmanager
2
2
 
3
+ import android.util.Log
3
4
  import android.app.ActivityManager
4
5
  import android.content.Context
5
6
  import android.content.Intent
@@ -60,6 +60,7 @@ class CallNotificationHelper(private val context: Context) {
60
60
  .build()
61
61
 
62
62
  Notification.Builder(context, CHANNEL_ID)
63
+ .setSmallIcon(android.R.drawable.sym_call_incoming) // <-- REQUIRED!
63
64
  .setStyle(
64
65
  Notification.CallStyle.forIncomingCall(
65
66
  person,
@@ -67,15 +68,15 @@ class CallNotificationHelper(private val context: Context) {
67
68
  declinePendingIntent
68
69
  )
69
70
  )
70
- .setFullScreenIntent(fullScreenPendingIntent, true) // <-- set separately
71
+ .setFullScreenIntent(fullScreenPendingIntent, true)
71
72
  .setOngoing(true)
72
73
  .setAutoCancel(false)
73
74
  .build()
74
75
  } else {
75
76
  Notification.Builder(context, CHANNEL_ID)
77
+ .setSmallIcon(android.R.drawable.sym_call_incoming) // <-- REQUIRED!
76
78
  .setContentTitle("Incoming Call")
77
79
  .setContentText(callerName)
78
- .setSmallIcon(android.R.drawable.sym_call_incoming)
79
80
  .setPriority(Notification.PRIORITY_HIGH)
80
81
  .setCategory(Notification.CATEGORY_CALL)
81
82
  .setFullScreenIntent(fullScreenPendingIntent, true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qusaieilouti99/call-manager",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "call manager",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",