Skip to content

Building

Devin Smith edited this page Nov 13, 2017 · 12 revisions

Development Setup

iOS and Android do not support WebRTC natively, we we use the plugins cordova-plugin-iosrtc for iOS, and cordova-plugin-crosswalk-webview for Android.


Install packages

All of the node packages and cordova plugins will be installed. Please make sure you are running a newer version of Ionic CLI, as this package requires Ionic 3.0. You can check this by running ionic info in the terminal. Once you are sure you have the right versions, enter the below into terminal.

npm install

You should now have what you need to develop locally using the ionic serve command.


iOS

  1. Run the following in terminal. Adding and removing it twice is necessary to get all the settings right.
ionic cordova platform add ios
ionic cordova resources ios
ionic cordova platform rm ios 
ionic cordova platform add ios
  1. Open your platforms/ios/ionic-video-chat-3.xcworkspace file in Xcode 9 and update your code signing
  2. Make sure there are 4 Privacy Entries in your Info.plist. If not, add the following 3 entries with a text description.
  3. NSCameraUsageDescription
  4. NSContactsUsageDescription
  5. NSMicrophoneUsageDescription
  6. NSPhotoLibraryUsageDescription
  7. Build and then run in Xcode
ionic cordova build ios
  1. If you run into any issues complaining about bridge headers, or swift versions, you may want to check out the iosrtc build instructions.

Android

  1. Run the following in terminal. Adding and removing it twice is necessary to get all the settings right.
ionic cordova platform remove android
ionic cordova platform add android
ionic cordova resources android
ionic cordova build android
  1. Add the following lines to your platforms/android/AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
  1. Build!
Clone this wiki locally