Skip to content

Commit 50e75ba

Browse files
authored
Improve Android broadcasts and iOS delegate (#159)
* add missing call data * add self managed call permission * working android self managed * init integration with ios * working android call * export android and fix iOS call * restore signing team to cloudwebrtc * differ between iOS and android connected * simplify mute boolean comparison * send notification on disconnect report * add custom schema option * start calls from log * encapsulate account handle * fix appdelegate callback signature * add answer call to iOS * fix null audio state access * add optional notify on end call report android * add settings caching * change displayincoming to static
1 parent bc36106 commit 50e75ba

23 files changed

+1445
-856
lines changed

android/src/main/java/io/wazo/callkeep/CallKeepBackgroundMessagingService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ public static void acquireWakeLockNow(Context context) {
4848
@Nullable
4949
@Override
5050
public IBinder onBind(Intent intent) {
51-
Log.d(TAG, "wakeUpApplication: " + intent.getStringExtra("callUUID") + ", number : " + intent.getStringExtra("handle") + ", displayName:" + intent.getStringExtra("name"));
51+
Log.d(TAG, "wakeUpApplication: " + intent.getStringExtra(CallKeepConstants.EXTRA_CALL_UUID) +
52+
", number : " + intent.getStringExtra(CallKeepConstants.EXTRA_CALL_NUMBER) +
53+
", displayName:" + intent.getStringExtra(CallKeepConstants.EXTRA_CALLER_NAME));
5254
//TODO: not implemented
5355
return null;
5456
}
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
package io.wazo.callkeep;
22

3-
public class Constants {
3+
public class CallKeepConstants {
4+
public static final String ACTION_WAKEUP_CALL = "ACTION_WAKEUP_CALL";
5+
46
public static final String ACTION_ANSWER_CALL = "ACTION_ANSWER_CALL";
7+
public static final String ACTION_REJECT_CALL = "ACTION_REJECT_CALL";
8+
public static final String ACTION_INCOMING_CALL = "ACTION_INCOMING_CALL";
9+
public static final String ACTION_FAILED_CALL = "ACTION_FAILED_CALL";
10+
public static final String ACTION_ONGOING_CALL = "ACTION_ONGOING_CALL";
11+
512
public static final String ACTION_AUDIO_SESSION = "ACTION_AUDIO_SESSION";
613
public static final String ACTION_CHECK_REACHABILITY = "ACTION_CHECK_REACHABILITY";
714
public static final String ACTION_DTMF_TONE = "ACTION_DTMF_TONE";
815
public static final String ACTION_END_CALL = "ACTION_END_CALL";
916
public static final String ACTION_HOLD_CALL = "ACTION_HOLD_CALL";
1017
public static final String ACTION_MUTE_CALL = "ACTION_MUTE_CALL";
11-
public static final String ACTION_ONGOING_CALL = "ACTION_ONGOING_CALL";
18+
public static final String ACTION_AUDIO_CALL = "ACTION_AUDIO_CALL";
1219
public static final String ACTION_UNHOLD_CALL = "ACTION_UNHOLD_CALL";
1320
public static final String ACTION_UNMUTE_CALL = "ACTION_UNMUTE_CALL";
1421
public static final String ACTION_WAKE_APP = "ACTION_WAKE_APP";
1522

1623
public static final String EXTRA_CALL_NUMBER = "EXTRA_CALL_NUMBER";
1724
public static final String EXTRA_CALL_UUID = "EXTRA_CALL_UUID";
25+
public static final String EXTRA_CALL_DATA = "EXTRA_CALL_EXTRAS";
1826
public static final String EXTRA_CALLER_NAME = "EXTRA_CALLER_NAME";
27+
public static final String EXTRA_CALL_ATTRIB = "EXTRA_CALL_ATTRIB";
28+
29+
30+
public static final String HOLD_SUPPORT_DATA_KEY = "io.wazo.callkeep.HoldSupported";
31+
public static final String BROADCAST_RECEIVER_META_DATA_KEY = "io.wazo.callkeep.BroadcastReceiver";
1932

2033
public static final int FOREGROUND_SERVICE_TYPE_MICROPHONE = 128;
2134
}

0 commit comments

Comments
 (0)