omikit-plugin 2.2.0 → 2.2.3

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
@@ -141,7 +141,7 @@ You can refer <a href="https://github.com/VIHATTeam/OMICALL-React-Native-SDK/blo
141
141
  - Add `google-service.json` in `android/app` (For more information, you can refer <a href="https://rnfirebase.io/app/usage">Core/App</a>)
142
142
  - Add Fire Messaging to receive `fcm_token` (You can refer <a href="https://rnfirebase.io/messaging/usage">Cloud Messaging</a> to setup notification for React native)
143
143
 
144
- - For more setting information, please refer <a href="https://rnfirebase.io/messaging/usage">Config Push for Android</a>
144
+ - For more setting information, please refer <a href="https://api.omicall.com/web-sdk/mobile-sdk/android-sdk/cau-hinh-push-notification">Config Push for Android</a>
145
145
 
146
146
  #### iOS:
147
147
 
@@ -230,7 +230,7 @@ if (@available(iOS 10.0, *)) {
230
230
 
231
231
  ```
232
232
 
233
- *** Only use under lines when added `Cloud Messaging` plugin in your project ***
233
+ **_ Only use under lines when added `Cloud Messaging` plugin in your project _**
234
234
 
235
235
  - Setup push notification: We only support Firebase for push notification.
236
236
 
@@ -250,6 +250,7 @@ if (@available(iOS 10.0, *)) {
250
250
  ```
251
251
 
252
252
  - Important function.
253
+
253
254
  - Start Serivce: OmiKit need start services and register some events.
254
255
 
255
256
  ```
@@ -326,6 +327,7 @@ if (@available(iOS 10.0, *)) {
326
327
  ```
327
328
 
328
329
  - Upload token: OmiKit need FCM for Android and APNS to push notification on user devices. We use more packages: <a href="https://rnfirebase.io/messaging/usage">Cloud Messaging</a> and <a href="https://www.npmjs.com/package/react-native-device-info?activeTab=readme">react-native-device-info</a>
330
+
329
331
  ```
330
332
  import { updateToken } from 'omikit-plugin';
331
333
  const fcmToken = await fcm;
@@ -341,7 +343,9 @@ if (@available(iOS 10.0, *)) {
341
343
  ```
342
344
 
343
345
  - Other functions:
346
+
344
347
  - Call with phone number (mobile phone or internal number):
348
+
345
349
  ```
346
350
  import {startCall} from 'omikit-plugin';
347
351
  const result = await startCall({
@@ -349,7 +353,9 @@ if (@available(iOS 10.0, *)) {
349
353
  isVideo: false //allow video call: true/false
350
354
  });
351
355
  ```
356
+
352
357
  - Call with UUID (only support with Api key):
358
+
353
359
  ```
354
360
  import {startCallWithUuid} from 'omikit-plugin';
355
361
  const result = await startCallWithUuid({
@@ -357,6 +363,7 @@ if (@available(iOS 10.0, *)) {
357
363
  isVideo: false //allow video call: true/false
358
364
  });
359
365
  ```
366
+
360
367
  - Accept a call:
361
368
 
362
369
  ```
@@ -410,10 +417,11 @@ if (@available(iOS 10.0, *)) {
410
417
  character: text,
411
418
  });
412
419
  ```
420
+
413
421
  - Get current user information:
414
422
  ```
415
423
  final user = await getCurrentUser();
416
- Output Sample:
424
+ Output Sample:
417
425
  {
418
426
  "extension": "111",
419
427
  "full_name": "chau1",
@@ -424,7 +432,7 @@ if (@available(iOS 10.0, *)) {
424
432
  - Get guest user information:
425
433
  ```
426
434
  final user = await getGuestUser();
427
- Output Sample:
435
+ Output Sample:
428
436
  {
429
437
  "extension": "111",
430
438
  "full_name": "chau1",
@@ -433,9 +441,10 @@ if (@available(iOS 10.0, *)) {
433
441
  }
434
442
  ```
435
443
  - Get user information from sip:
444
+
436
445
  ```
437
446
  final user = await getUserInfo("111");
438
- Output Sample:
447
+ Output Sample:
439
448
  {
440
449
  "extension": "111",
441
450
  "full_name": "chau1",
@@ -451,6 +460,7 @@ if (@available(iOS 10.0, *)) {
451
460
 
452
461
  logout();
453
462
  ```
463
+
454
464
  - Video Call functions: Support only video call, You need enable video in `init functions` and `start call` to implements under functions.
455
465
 
456
466
  - Switch front/back camera: We use the front camera for first time.
@@ -96,7 +96,7 @@ dependencies {
96
96
  implementation "com.facebook.react:react-native:+" // From node_modules
97
97
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
98
98
 
99
- api 'vn.vihat.omicall:omi-sdk:1.1.24'
99
+ api 'vn.vihat.omicall:omi-sdk:1.1.26'
100
100
 
101
101
  implementation 'androidx.core:core-ktx:1.7.0'
102
102
  implementation 'androidx.fragment:fragment-ktx:1.4.0'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "2.2.0",
3
+ "version": "2.2.3",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",