aboutsummaryrefslogtreecommitdiff
path: root/en/devices/tech/connect/call-notification.html
blob: a7a6c9a946002454e6ffde7acf4af5bda24600eb (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html devsite>
  <head>
    <title>Call Notifications</title>
    <meta name="project_path" value="/_project.yaml" />
    <meta name="book_path" value="/_book.yaml" />
  </head>
  <body>
  <!--
      Copyright 2017 The Android Open Source Project

      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
  -->



<p>Android 7.0 moves functionality related to call notifications from the
Telecom system service in the Android platform to the Dialer application.
Previously, the responsibility for displaying call-related notifications was
split between Telecom and the default Dialer app, creating inconsistencies in
behavior. In Android 7.0, the Dialer assumes all responsibility for handling
call notifications.</p>

<h2 id=android_6>Behavior in Android 6.x and earlier</h2>
<p>In earlier Android releases, Telecom and Dialer split responsibilities as
described below:</p>

<table>
<tr>
<th>Functionality</th>
<th>Done by Telecom</th>
<th>Done by Dialer</th>
</tr>

<tr>
<td>Incoming call notification</td>
<td>Yes (ringing, vibrate)</td>
<td>Yes (notification display, caller ID)</td>
</tr>

<tr>
<td>Send to voicemail</td>
<td>Yes</td>
<td>No</td>
</tr>

<tr>
<td>Custom ringtone</td>
<td>Yes</td>
<td>No</td>
</tr>

<tr>
<td>Missed call notifications</td>
<td>Yes</td>
<td>No</td>
</tr>

<tr>
<td>Message Waiting Indicator (call voicemail)</td>
<td>Yes (telephony)</td>
<td>No</td>
</tr>

<tr>
<td>Visual voicemail notifications</td>
<td>No</td>
<td>Yes</td>
</tr>

</tbody>
</table>

<p>Examples of inconsistent behavior caused by this responsibility split
included:</p>
<ul>
<li>Telecom was responsible for starting the ringer/vibrator, but the dialer was
responsible for displaying the incoming call notification. If the dialer is slow
to startup, this can result in ringing starting several seconds before the
incoming call notification is displayed.</li>
<li>Telecom was responsible for displaying missed call notifications. As
proprietary features (such as Google caller ID) do not work on these
notifications, this could result in inconsistencies between Telecom
notifications and Dialer UI (such as the call log).</li>
</ul>

<h2 id=android_7>Behavior in Android 7.0 and later</h2>
<p>The Android Open Source Project (AOSP) Dialer implements the new
functionality. For details, refer to the following documentation:</p>
<ul>
<li>Missed call notifications<br>
<a href="https://android.googlesource.com/platform/packages/services/Telecomm/+/master/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java">Telecom/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java</a><br>
<a href="https://android.googlesource.com/platform/packages/apps/Dialer/+/master/java/com/android/dialer/app/calllog/MissedCallNotificationReceiver.java">Dialer/android/dialer/calllog/MissedCallNotificationReceiver.java</a><br>
<a href="https://android.googlesource.com/platform/packages/apps/Dialer/+/master/java/com/android/dialer/app/calllog/MissedCallNotifier.java">Dialer/android/dialer/calllog/MissedCallNotifier.java</a></li>
<li>Playing ringtones:<br>
<a href="https://android.googlesource.com/platform/frameworks/base/+/master/telecomm/java/android/telecom/InCallService.java">frameworks/base/telecomm/java/android/telecom/InCallService.java</a><br>
<a href="https://android.googlesource.com/platform/packages/services/Telecomm/+/master/src/com/android/server/telecom/InCallController.java">Telecom/src/com/android/server/telecom/InCallController.java</a><br>
<a href="https://android.googlesource.com/platform/packages/apps/Dialer/+/master/java/com/android/incallui/ringtone/">Dialer/java/com/android/incallui/ringtone/</a><br>
<a href="https://android.googlesource.com/platform/packages/apps/Dialer/+/master/java/com/android/incallui/StatusBarNotifier.java">Dialer/java/com/android/incallui/StatusBarNotifier.java</a></li>
<li>VVM notifications<br>
<a href="https://android.googlesource.com/platform/frameworks/base/+/master/telephony/java/android/telephony/TelephonyManager.java">frameworks/base/telephony/java/android/telephony/TelephonyManager.java</a><br>
<a href="https://android.googlesource.com/platform/packages/services/Telephony/+/master/src/com/android/phone/PhoneInterfaceManager.java">Telephony/src/com/android/phone/PhoneInterfaceManager.java</a><br>
<a href="https://android.googlesource.com/platform/packages/apps/Dialer/+/nougat-release/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java">Dialer/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java</a></li>
</ul>

<h2 id=implement>Implementation</h2>
<p>Device implementers may need to update Telecom/Telephony components that
expose APIs available for use by the default Dialer.</p>

  </body>
</html>