User agent demo application that uses react-native-voximplant
and Voximplant cloud platform for making/receiving audio/video calls.
-
Install React Native as described at https://facebook.github.io/react-native/docs/getting-started.html#content
-
Clone this repository
-
Run
npm install
, all required components will be installed automatically- Run
pod install
fromreact-native-demo/ios
folder - Start XCode and open generated
VoxImplantDemo.xcworkspace
Note: To enable ios push notifications in demo project, follow the the instructions to add certificates to the Voximplant Cloud
- Run
no steps required
Note:
To enable andorid push notifications in demo preoject:
1. Follow [the instructions](http://voximplant.com/blog/push-notifications-for-android/) to add the certificates to the Voximplant Cloud
2. Add `google-services.json` file to android/app folder
3. Open `app/build.gradle` file and uncomment the `//apply plugin: 'com.google.gms.google-services'` line
- Run your project from XCode (
Cmd+R
) for iOS, or usereact-native run-android
to run your project on Android.
The demo project uses the following third-party dependencies:
- "react-native-vector-icons" - to implement icon buttons
- "react-native-default-preference" - to store username and login tokens in default pregerences
- "react-native-fcm" - to support push notifications on android
- "react-native-notifications" - to support push notifications on iOS
- "react-native-md5" - to login with one time key
These are not the dependencies for our react native sdk, but only for demo project. Please note that we use these dependencies just to simplify our demo project and to provide the ability to try full functionality of our sdk. Integration of these dependencies to the demo project does not mean that you have to use these dependencies in your project.