Simple plugin to enable VoIP settings in iOS. Compatible with plugman. Built upon the Cordova Echo plugin example.
This cordova plug-in is created to ease the implementation of "voip" background mode in iOS Applications. The plugin enables the following background modes in an iOS App :
- voip
- audio
In addition, the plugin exposes interfaces to manage application's background state.
For more information, refer [App Programing Guide for iOS: Background Execution] (https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html)
The plugin creates the object cordova.plugins.voipMode
with the following methods:
The voipMode.didEnterBackground
interface can be used to get notified when the app goes to backround.
cordova.plugins.voipMode.didEnterBackground = function() {};
The voipMode.inSuspendedState
interface can be used to execute keep alive routines to stay connected with voip server while the app stays suspended.
cordova.plugins.voipMode.inSuspendedState = function() {};
The voipMode.willEnterForeground
interface can be used to get notified when the app is ready to enter foreground.
cordova.plugins.voipMode.willEnterForeground = function() {};
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request