Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/adaptation to vnc (for comparison only) #1

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7a34010
feat: add possibility for calling from killed state;
ValVNC Mar 1, 2021
d332609
feat: optimaze calls for multiple pushes about same call;
ValVNC Mar 1, 2021
c26576c
feat: add new field to payload;
ValVNC Mar 1, 2021
f34b006
feat: improved parsing of custom payload parameters;
ValVNC Mar 2, 2021
18aa5ab
feat: add call data to callbacks;
ValVNC Mar 4, 2021
6d244e7
feat: add call data to callbacks;
ValVNC Mar 4, 2021
31b4803
feat: add 'conferenceId' to call data payload;
ValVNC Mar 10, 2021
1411f36
fix build issue;
ValVNC Mar 11, 2021
3c6b727
- fix calling 'registration' callback before call 'init' method;
ValVNC Mar 24, 2021
b468677
disable redundant code, cause we do it on app side;
ValVNC Mar 30, 2021
30168d8
- reworked logic for work with VNC app;
ValVNC Mar 31, 2021
ea94601
- add ignoring VoIP in foreground;
ValVNC Apr 1, 2021
1cbfbc1
feat: rejecting call via REST request;
ValVNC Apr 5, 2021
56c767a
- add processing self-reject/self-accept actions (sending and receivi…
ValVNC Apr 6, 2021
91473f1
- added processing 'leave' event, updated some push parameters;
ValVNC Apr 8, 2021
80b8712
- add 'background' notifications for call signalling (leave, join-sel…
ValVNC Apr 9, 2021
f5944c6
- update 'self' event behavior;
ValVNC Apr 9, 2021
281bdf1
- implemented 'join-self' and 'reject-self' requests for 'Accept' and…
ValVNC Apr 14, 2021
d8b4e0c
- separated '-self' requests;
ValVNC Apr 19, 2021
2932ffa
- improve sending 'answer' event;
ValVNC Apr 20, 2021
63f5288
- update sendCall function;
ValVNC May 20, 2021
5ff90a9
- fixed contact name in Recents;
ValVNC May 20, 2021
02fcb1b
feat: add timer for closing Callkit after 60 sec if the call not fini…
ValVNC Jun 2, 2021
ed61e4b
feat: remove android support;
ValVNC Jun 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"cordova": {
"id": "cordova-plugin-callkit",
"platforms": [
"ios",
"android"
"ios"
]
},
"repository": {
Expand Down
27 changes: 0 additions & 27 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,6 @@
<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">
Expand Down
12 changes: 12 additions & 0 deletions src/ios/AppDelegateCordovaCall.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ @implementation AppDelegate (CordovaCall)

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler
{
NSLog(@"[AppDelegateCordovaCall][continueUserActivity]");
INInteraction *interaction = userActivity.interaction;
INIntent *intent = interaction.intent;
BOOL isVideo = [intent isKindOfClass:[INStartVideoCallIntent class]];
Expand All @@ -28,4 +29,15 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct
[[NSNotificationCenter defaultCenter] postNotificationName:@"RecentsCallNotification" object:intentInfo];
return YES;
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler
{
NSLog(@"[AppDelegateCordovaCall][didReceiveRemoteNotification] userInfo: %@", userInfo);
NSString *callSignalType = [userInfo valueForKey:@"call_signal_type"];
if(callSignalType != nil){
[[NSNotificationCenter defaultCenter] postNotificationName:@"CallSignalNotification" object:userInfo];
}

completionHandler(UIBackgroundFetchResultNewData);
}
@end
3 changes: 3 additions & 0 deletions src/ios/CordovaCall.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@
- (void)receiveCallFromRecents:(NSNotification *) notification;
- (void)handleAudioRouteChange:(NSNotification *) notification;

- (BOOL)hasActiveCall;
- (void)postRequestWithSubUrl:(NSString *)suburl params:(NSDictionary *)params;

@end
Loading