-
Notifications
You must be signed in to change notification settings - Fork 47
/
plugin.xml
64 lines (53 loc) · 2.62 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-callkit" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Cordova CallKit</name>
<js-module name="VoIPPushNotification" src="www/VoIPPushNotification.js">
<clobbers target="VoIPPushNotification" />
</js-module>
<js-module name="CordovaCall" src="www/CordovaCall.js">
<clobbers target="cordova.plugins.CordovaCall" />
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CordovaCall">
<param name="android-package" value="com.dmarc.cordovacall.CordovaCall" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.BIND_TELECOM_CONNECTION_SERVICE"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.MANAGE_OWN_CALLS"/>
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<service android:name="com.dmarc.cordovacall.MyConnectionService"
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
<intent-filter>
<action android:name="android.telecom.ConnectionService" />
</intent-filter>
</service>
</config-file>
<source-file src="src/android/CordovaCall.java" target-dir="src/com/dmarc/cordovacall" />
<source-file src="src/android/MyConnectionService.java" target-dir="src/com/dmarc/cordovacall" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CordovaCall">
<param name="ios-package" value="CordovaCall" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>fetch</string>
<string>remote-notification</string>
<string>voip</string>
</array>
</config-file>
<header-file src="src/ios/CordovaCall.h" />
<source-file src="src/ios/CordovaCall.m" />
<source-file src="src/ios/AppDelegateCordovaCall.m" />
<framework src="PushKit.framework" />
<framework src="CallKit.framework" />
</platform>
</plugin>