-
Notifications
You must be signed in to change notification settings - Fork 12
Building
Devin Smith edited this page Nov 13, 2017
·
12 revisions
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.
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.
- 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
- Open your
platforms/ios/ionic-video-chat-3.xcworkspace
file in Xcode 9 and update your code signing - Make sure there are 4 Privacy Entries in your Info.plist. If not, add the following 3 entries with a text description.
- NSCameraUsageDescription
- NSContactsUsageDescription
- NSMicrophoneUsageDescription
- NSPhotoLibraryUsageDescription
- Build and then run in Xcode
ionic cordova build ios
- If you run into any issues complaining about bridge headers, or swift versions, you may want to check out the iosrtc build instructions.
- 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
- 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" />
- Build!