rns-nativecall 0.6.1 → 0.6.2

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.
@@ -95,32 +95,8 @@ object NativeCallManager {
95
95
  .addAction(0, "Decline", rejectPendingIntent)
96
96
 
97
97
 
98
- // Inside NativeCallManager.kt (where you build the notification)
99
-
100
- val acceptIntent = Intent(context, AcceptCallActivity::class.java).apply {
101
- // THIS IS THE CRITICAL PART:
102
- // You must map the FCM data (Map<String, String>) into the Intent Extras
103
- data.forEach { (key, value) ->
104
- this.putExtra(key, value)
105
- }
106
- // Ensure we have a unique action so the system doesn't cache old data
107
- action = "ACTION_ACCEPT_CALL_${System.currentTimeMillis()}"
108
- addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_NO_USER_ACTION)
109
- }
110
-
111
- val pendingFlags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
112
- PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE // MUST BE MUTABLE to carry data
113
- } else {
114
- PendingIntent.FLAG_UPDATE_CURRENT
115
- }
116
-
117
- val acceptPendingIntent = PendingIntent.getActivity(
118
- context,
119
- 1001,
120
- acceptIntent,
121
- pendingFlags
122
- )
123
98
 
99
+
124
100
  notificationManager.notify(uuid.hashCode(), builder.build())
125
101
 
126
102
  // Start Ringtone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rns-nativecall",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "RNS nativecall component with native Android/iOS for handling native call ui, when app is not open or open.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",