omikit-plugin 3.2.23 → 3.2.25

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
@@ -176,7 +176,7 @@ You can refer <a href="https://github.com/VIHATTeam/OMICALL-React-Native-SDK/blo
176
176
  </manifest>
177
177
  ```
178
178
 
179
- # In file MainActivity:
179
+ ##### In file MainActivity:
180
180
  ```
181
181
  public class MainActivity extends ReactActivity {
182
182
  ..... // your config
@@ -387,10 +387,12 @@ We support 2 environments. So you need set correct key in Appdelegate.
387
387
 
388
388
  ## Implement
389
389
 
390
- ## Request permission
391
- ```
390
+ ### Request permission
391
+
392
392
  We need you request permission about call before make call:
393
+ - You can use <a href="https://github.com/zoontek/react-native-permissions">react-native-permissions</a> to do this
393
394
 
395
+ ```
394
396
  -Android:
395
397
  + PERMISSIONS.ANDROID.RECORD_AUDIO
396
398
  + PERMISSIONS.ANDROID.CALL_PHONE
@@ -400,7 +402,6 @@ We need you request permission about call before make call:
400
402
  + PERMISSIONS.IOS.MICROPHONE;
401
403
  + PERMISSIONS.IOS.CAMERA; (if you want to make Video calls)
402
404
 
403
- You can use react native permissions to do this
404
405
  ```
405
406
 
406
407
  - Set up <a href="https://rnfirebase.io/messaging/usage">Cloud Messaging</a> plugin:
@@ -519,20 +520,19 @@ You can use react native permissions to do this
519
520
  phoneNumber: phone, //phone number
520
521
  isVideo: false //allow video call: true/false
521
522
  });
522
-
523
- // The result will be in the form of object:
524
-
525
523
  ```
526
- result = {
524
+ - The result will be in the form of object:
525
+ ```
526
+ result = {
527
527
  "_id": String // This is call_id. it just have id for iOS,
528
528
  "status": Number // This is result code when make,
529
529
  "message": String // This is a string key, describing the status of the call
530
530
  }
531
531
  ```
532
532
 
533
- ```
534
533
  - Describe in detail the results when startCall returns:
535
534
 
535
+ ```
536
536
  + message="INVALID_UUID" (status = 0) : uid is invalid (we can not find on my page).
537
537
  + message="INVALID_PHONE_NUMBER" (status = 1) : sip user is invalid.
538
538
  + message="SAME_PHONE_NUMBER_WITH_PHONE_REGISTER" (status = 2) : Can not call same phone number.
@@ -542,7 +542,7 @@ You can use react native permissions to do this
542
542
  + message="REGISTER_ACCOUNT_FAIL" (status = 6) : Can't log in to OMI( maybe wrong login information).
543
543
  + message="START_CALL_FAIL" (status = 7) : Call failed, please try again
544
544
  + message="HAVE_ANOTHER_CALL" (status = 9) : There is another call in progress, please wait for that call to end
545
- + message="START_CALL_SUCCESS" (status = 8) : Start call successfully.
545
+ + message="START_CALL_SUCCESS" (status = 8) : START CALL SUCCESSFULLY.
546
546
 
547
547
  ```
548
548
 
@@ -756,8 +756,8 @@ useEffect(() => {
756
756
  ```
757
757
 
758
758
  - Important event `onCallStateChanged`: We provide it to listen call state change.
759
- //OmiAction have 2 variables: actionName and data
760
- ```
759
+ // OmiAction have 2 variables: actionName and data
760
+
761
761
  - Action Name value:
762
762
  - `onCallStateChanged`: Call state changed.
763
763
  - `onSwitchboardAnswer`: Switchboard sip is listening.
@@ -784,13 +784,13 @@ useEffect(() => {
784
784
  + onSwitchboardAnswer have callback when employee answered script call.
785
785
 
786
786
  - List of notable call codes `code_end_call`:
787
- + 600, 503, 480 : These are the codes of the network operator or the user who did not answer the call
788
- + 408: call request timeout (Each call usually has a waiting time of 30 seconds. If the 30 seconds expire, it will time out)
789
- + 403: Your service plan only allows calls to dialed numbers. Please upgrade your service pack
790
- + 404: The current number is not allowed to make calls to the carrier
791
- + 603: The call was rejected. Please check your account limit or call barring configuration!
792
- + 850: Simultaneous call limit exceeded, please try again later
793
- + 486: The listener refuses the call and does not answer
787
+ + `600, 503, 480` : These are the codes of the network operator or the user who did not answer the call
788
+ + `408` : call request timeout (Each call usually has a waiting time of 30 seconds. If the 30 seconds expire, it will time out)
789
+ + `403` : Your service plan only allows calls to dialed numbers. Please upgrade your service pack
790
+ + `404` : The current number is not allowed to make calls to the carrier
791
+ + `603` : The call was rejected. Please check your account limit or call barring configuration!
792
+ + `850` : Simultaneous call limit exceeded, please try again later
793
+ + `486` : The listener refuses the call and does not answer
794
794
 
795
795
 
796
796
  - Action Name value:
@@ -104,7 +104,7 @@ dependencies {
104
104
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
105
105
  // noinspection GradleDynamicVersion
106
106
  // implementation "com.facebook.react:react-native"
107
- api 'vn.vihat.omicall:omi-sdk:2.1.45'
107
+ api 'vn.vihat.omicall:omi-sdk:2.1.46'
108
108
 
109
109
  implementation "com.facebook.react:react-native:+" // From node_modules
110
110
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
@@ -32,5 +32,5 @@ Pod::Spec.new do |s|
32
32
  s.dependency "RCTTypeSafety"
33
33
  s.dependency "ReactCommon/turbomodule/core"
34
34
  end
35
- s.dependency "OmiKit", '1.6.37'
35
+ s.dependency "OmiKit", '1.6.38'
36
36
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.23",
3
+ "version": "3.2.25",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",