The demo application that uses react-native-voximplant and Voximplant cloud platform for making/receiving audio/video calls.
To get started, you'll need to register a free Voximplant developer account.
You'll need the following:
- Voximplant application
- two Voximplant users
- VoxEngine scenario
- routing setup
- push certificates:
- ios: VoIP services certificate. Follow this tutorial to upload the certificate to the Voximplant Control Panel
- android: Firebase certificate. Follow this tutorial to upload the certificate to the Voximplant Control Panel
We've implemented a special template to enable you to quickly use the demo – just install SDK tutorial from our marketplace.
You can set up it manually using our Getting started page and tutorials
require(Modules.PushService);
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});
-
Install React Native as described at https://facebook.github.io/react-native/docs/getting-started.html#content
-
Clone this repository
-
Run
yarn install, all required components will be installed automatically- Run
pod installfromreact-native-demo/iosfolder - Start XCode and open generated
VoximplantDemo.xcworkspace
no steps required
Note: To enable android push notifications in the demo project:
- Follow the instructions to add the certificates to the Voximplant Cloud
- Add
google-services.jsonfile to android/app folder - Open
app/build.gradlefile and uncomment the//apply plugin: 'com.google.gms.google-services'line
- Run
-
It is recommended to run
react-native startcommand from root project directory. -
Run your project from XCode (
Cmd+R) for iOS, or usereact-native run-androidto run your project on Android.
Official guides:
- contact us via
support@voximplant.com - create an issue
- join our developer community