gorshenev / react-native-demo

React Native Voximplant Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native Voximplant Demo Application

The demo application that uses react-native-voximplant and Voximplant cloud platform for making/receiving audio/video calls.

Getting started

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

Automatic

We've implemented a special template to enable you to quickly use the demo – just install SDK tutorial from our marketplace.

Manual

You can set up it manually using our Getting started page and tutorials

VoxEngine scenario example:

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);
});

Build and run the app

  1. Install React Native as described at https://facebook.github.io/react-native/docs/getting-started.html#content

  2. Clone this repository

  3. Run yarn install , all required components will be installed automatically

    iOS

    1. Run pod install from react-native-demo/ios folder
    2. Start XCode and open generated VoximplantDemo.xcworkspace

    Android

    no steps required

    Note: To enable android push notifications in the demo project:

    1. Follow the instructions 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
  4. It is recommended to run react-native start command from root project directory.

  5. Run your project from XCode (Cmd+R) for iOS, or use react-native run-android to run your project on Android.

Useful links

Official guides:

Have a question

  • contact us via support@voximplant.com
  • create an issue
  • join our developer community

About

React Native Voximplant Demo


Languages

Language:JavaScript 83.2%Language:Objective-C 8.2%Language:Ruby 3.7%Language:Java 2.5%Language:Starlark 2.4%