@developer_tribe/react-native-comnyx 0.10.5 → 0.10.6
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
|
@@ -122,8 +122,8 @@ class NotificationsHelper(private val context: Context) {
|
|
|
122
122
|
val builder = NotificationCompat.Builder(context, CHANNEL_ID)
|
|
123
123
|
.setContentTitle(title)
|
|
124
124
|
.setContentText(message)
|
|
125
|
-
|
|
126
|
-
val iconResourceId = context.resources.getIdentifier("
|
|
125
|
+
|
|
126
|
+
val iconResourceId = context.resources.getIdentifier("com.google.firebase.messaging.default_notification_icon", "drawable", context.packageName)
|
|
127
127
|
if (iconResourceId != 0) {
|
|
128
128
|
builder.setSmallIcon(iconResourceId)
|
|
129
129
|
Log.d(TAG, "Using Firebase default notification icon")
|
|
@@ -137,7 +137,7 @@ class NotificationsHelper(private val context: Context) {
|
|
|
137
137
|
Log.d(TAG, "Using system default icon as final fallback")
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
|
|
141
141
|
builder.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
|
142
142
|
//.setNumber(100)
|
|
143
143
|
.setAutoCancel(true)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developer_tribe/react-native-comnyx",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
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": "./lib/commonjs/index.js",
|