@developer_tribe/react-native-comnyx 0.13.7 → 0.13.9
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/android/src/main/java/com/comnyx/src/messaging/notifications/NotificationsService.kt
CHANGED
|
@@ -5,7 +5,7 @@ import android.app.NotificationManager
|
|
|
5
5
|
import android.app.PendingIntent
|
|
6
6
|
import android.content.Context
|
|
7
7
|
import android.content.Intent
|
|
8
|
-
import android.
|
|
8
|
+
import android.content.pm.PackageManager
|
|
9
9
|
import android.graphics.Color
|
|
10
10
|
import android.os.Build
|
|
11
11
|
import android.util.Log
|
|
@@ -123,14 +123,15 @@ class NotificationsHelper(private val context: Context) {
|
|
|
123
123
|
.setContentTitle(title)
|
|
124
124
|
.setContentText(message)
|
|
125
125
|
|
|
126
|
-
val
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
val appInfoWithMeta = context.packageManager.getApplicationInfo(
|
|
127
|
+
context.packageName,
|
|
128
|
+
PackageManager.GET_META_DATA
|
|
129
|
+
)
|
|
130
|
+
val metaIconId = appInfoWithMeta.metaData
|
|
131
|
+
?.getInt("com.google.firebase.messaging.default_notification_icon") ?: 0
|
|
132
|
+
if (metaIconId != 0) {
|
|
133
|
+
builder.setSmallIcon(metaIconId)
|
|
134
|
+
Logger.v("Using Firebase default notification icon from manifest meta-data", TAG)
|
|
134
135
|
} else {
|
|
135
136
|
try {
|
|
136
137
|
val appInfo = context.packageManager.getApplicationInfo(context.packageName, 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developer_tribe/react-native-comnyx",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.9",
|
|
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": "./src/index.ts",
|