omikit-plugin 3.2.35 → 3.2.37

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/README.md CHANGED
@@ -229,6 +229,8 @@ You can refer <a href="https://github.com/VIHATTeam/OMICALL-React-Native-SDK/blo
229
229
  <uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
230
230
  <uses-permission android:name="android.permission.CALL_PHONE" />
231
231
  <uses-permission android:name="android.permission.CAMERA" />
232
+ <uses-permission android:name="android.permission.SYSTEM_CAMERA" /> // add if use targetSDK 34
233
+
232
234
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
233
235
  <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
234
236
  <uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />
@@ -560,7 +562,8 @@ We need you request permission about call before make call:
560
562
  userNameKey: 'uuid', //we have 3 values: uuid, full_name, extension.
561
563
  channelId: 'com.channel.sample', //your notification channel id
562
564
  audioNotificationDescription: '' //audio description
563
- videoNotificationDescription: '' //video descriptipn
565
+ videoNotificationDescription: '' //video descriptipn,
566
+ representName: '' // Pass down the representative name if you want all incoming calls on the customer app to display only 1 unique name of your business
564
567
  });
565
568
  //incomingAcceptButtonImage, incomingDeclineButtonImage, backImage, userImage: Add these into `android/app/src/main/res/drawble`
566
569
  ```
@@ -852,14 +855,20 @@ useEffect(() => {
852
855
 
853
856
  + onSwitchboardAnswer have callback when employee answered script call.
854
857
 
855
- - List of notable call codes `code_end_call`:
856
- + `600, 503, 480` : These are the codes of the network operator or the user who did not answer the call
857
- + `408` : call request timeout (Each call usually has a waiting time of 30 seconds. If the 30 seconds expire, it will time out)
858
- + `403` : Your service plan only allows calls to dialed numbers. Please upgrade your service pack
859
- + `404` : The current number is not allowed to make calls to the carrier
860
- + `603` : The call was rejected. Please check your account limit or call barring configuration!
861
- + `850` : Simultaneous call limit exceeded, please try again later
862
- + `486` : The listener refuses the call and does not answer
858
+ - Table describing code_end_call status
859
+
860
+
861
+ | Code | Description |
862
+ |-------|-------------|
863
+ | `600, 503, 480` | These are the codes of the network operator or the user who did not answer the call |
864
+ | `408` | Call request timeout (Each call usually has a waiting time of 30 seconds. If the 30 seconds expire, it will time out) |
865
+ | `403` | Your service plan only allows calls to dialed numbers. Please upgrade your service pack |
866
+ | `404` | The current number is not allowed to make calls to the carrier |
867
+ | `603` | The call was rejected. Please check your account limit or call barring configuration! |
868
+ | `850` | Simultaneous call limit exceeded, please try again later |
869
+ | `486` | The listener refuses the call and does not answer |
870
+ | `601` | Call ended by the customer |
871
+ | `602` | Call ended by the other employee |
863
872
 
864
873
 
865
874
  - Action Name value:
@@ -881,4 +890,4 @@ useEffect(() => {
881
890
  # Issues
882
891
 
883
892
  ## iOS
884
- - Must use "Rosetta Destination" to run debug example app on macOS Apple chip
893
+ - Must use "Rosetta Destination" to run debug example app on macOS Apple chip
@@ -103,7 +103,7 @@ dependencies {
103
103
  // use for OMISDK
104
104
  implementation("androidx.work:work-runtime:2.8.1")
105
105
  implementation "androidx.security:security-crypto:1.1.0-alpha06"
106
- api 'vn.vihat.omicall:omi-sdk:2.2.82'
106
+ api 'vn.vihat.omicall:omi-sdk:2.2.83'
107
107
 
108
108
  implementation "com.facebook.react:react-native:+" // From node_modules
109
109
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
@@ -273,6 +273,8 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
273
273
  val audioNotificationDescription = data?.getString("audioNotificationDescription") ?: ""
274
274
  val videoNotificationDescription = data?.getString("videoNotificationDescription") ?: ""
275
275
  val displayNameType = data?.getString("displayNameType") ?: ""
276
+ val appRepresentName = data?.getString("representName") ?: ""
277
+
276
278
 
277
279
  OmiClient.getInstance(reactApplicationContext!!).configPushNotification(
278
280
  showMissedCall = true,
@@ -289,7 +291,8 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
289
291
  missedChannelId = "${channelId}-missed",
290
292
  missedChannelName = "Cuộc gọi nhỡ",
291
293
  displayNameType = userNameKey ?: "full_name",
292
- notificationMissedCallPrefix = prefixMissedCallMessage ?: "Cuộc gọi nhỡ từ"
294
+ notificationMissedCallPrefix = prefixMissedCallMessage ?: "Cuộc gọi nhỡ từ",
295
+ representName= appRepresentName ?: ""
293
296
  )
294
297
  promise.resolve(true)
295
298
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.35",
3
+ "version": "3.2.37",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",