החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
התראות על שיחות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ב-Android 7.0, הפונקציונליות שקשורה להתראות על שיחות מועברת משירות המערכת של Telecom בפלטפורמת Android לאפליקציית החיוג. בעבר, האחריות על הצגת התראות שקשורות לשיחות הייתה מחולקת בין Telecom לבין אפליקציית החיוג שמוגדרת כברירת מחדל, מה שגרם לאי-עקביות בהתנהגות. ב-Android 7.0, אפליקציית החיוג אחראית על כל הטיפול בהתראות על שיחות.
התנהגות ב-Android מגרסה 6.x ומטה
בגרסאות קודמות של Android, התפקידים של Telecom ו-Dialer התחלקו באופן הבא:
הפונקציונליות |
בוצע על ידי Telecom |
נוצר על ידי Dialer |
התראה על שיחה נכנסת |
כן (צלצול, רטט) |
כן (תצוגת התראות, שיחה ממספר חסוי) |
שלח לדואר הקולי |
כן |
לא |
רינגטון בהתאמה אישית |
כן |
לא |
עדכונים על שיחות שלא נענו |
כן |
לא |
אינדיקטור של הודעה ממתינה (שיחה לדואר הקולי) |
כן (טלפוניה) |
לא |
התראות על תא קולי ויזואלי |
לא |
כן |
דוגמאות להתנהגות לא עקבית שנגרמה כתוצאה מהחלוקה הזו של האחריות:
- חברת התקשורת הייתה אחראית להפעלת הצלצול או הרטט, אבל הכלי לחיוג היה אחראי להצגת ההתראה על שיחה נכנסת. אם המערכת לא מתחילה לפעול במהירות, יכול להיות שהצלצול יתחיל כמה שניות לפני שההתראה על השיחה הנכנסת תוצג.
- חברת התקשורת הייתה אחראית על הצגת ההתראות על שיחות שלא נענו. מאחר שתכונות קנייניות (כמו 'Google Caller ID') לא פועלות בהתראות האלה, ייתכן שייווצרו אי-התאמות בין ההתראות של Telecom לבין ממשק המשתמש של Dialer (למשל יומן השיחות).
ההתנהגות ב-Android מגרסה 7.0 ואילך
התכונות החדשות מוטמעות בחייגן של פרויקט הקוד הפתוח של Android (AOSP). פרטים נוספים זמינים במסמכים הבאים:
סגנון ההתראות לשיחות ב-Android מגרסה 12 ואילך
במכשירים עם Android מגרסה 12 ואילך, כדי לספק חוויית משתמש עקבית בשיחות, מומלץ לאפליקציות להשתמש בסגנון ההתראות
CallStyle
לשיחות נכנסות ולשיחות מתמשכות.
מידע נוסף זמין במאמר
התראות חדשות לשיחות טלפון שמאפשרות לדרג את מידת החשיבות של שיחות נכנסות.
הטמעה
יכול להיות שמטמיעי המכשירים יצטרכו לעדכן רכיבים של טלקומוניקציה/טלפוניה שמציגים ממשקי API שזמינים לשימוש באפליקציית החיוג שמוגדרת כברירת מחדל.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-06-18 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-06-18 (שעון UTC)."],[],[],null,["# Call notifications\n\nAndroid 7.0 moves functionality related to call notifications from the\nTelecom system service in the Android platform to the Dialer app.\nPreviously, the responsibility for displaying call-related notifications was\nsplit between Telecom and the default Dialer app, creating inconsistencies in\nbehavior. In Android 7.0, the Dialer assumes all responsibility for handling\ncall notifications.\n\nBehavior in Android 6.x and lower\n---------------------------------\n\nIn earlier Android releases, Telecom and Dialer split responsibilities as\ndescribed below:\n\n| Functionality | Done by Telecom | Done by Dialer |\n|--------------------------------------------|------------------------|---------------------------------------|\n| Incoming call notification | Yes (ringing, vibrate) | Yes (notification display, caller ID) |\n| Send to voicemail | Yes | No |\n| Custom ringtone | Yes | No |\n| Missed call notifications | Yes | No |\n| Message Waiting Indicator (call voicemail) | Yes (telephony) | No |\n| Visual voicemail notifications | No | Yes |\n\nExamples of inconsistent behavior caused by this responsibility split\nincluded:\n\n- 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.\n- 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).\n\nBehavior in Android 7.0 and higher\n----------------------------------\n\nThe Android Open Source Project (AOSP) Dialer implements the new\nfunctionality. For details, refer to the following documentation:\n\n- Missed call notifications \n [Telecom/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java](https://android.googlesource.com/platform/packages/services/Telecomm/+/android16-release/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java) \n [Dialer/android/dialer/calllog/MissedCallNotificationReceiver.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/dialer/app/calllog/MissedCallNotificationReceiver.java) \n [Dialer/android/dialer/calllog/MissedCallNotifier.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/dialer/app/calllog/MissedCallNotifier.java)\n- Playing ringtones: \n [frameworks/base/telecomm/java/android/telecom/InCallService.java](https://android.googlesource.com/platform/frameworks/base/+/android16-release/telecomm/java/android/telecom/InCallService.java) \n [Telecom/src/com/android/server/telecom/InCallController.java](https://android.googlesource.com/platform/packages/services/Telecomm/+/android16-release/src/com/android/server/telecom/InCallController.java) \n [Dialer/java/com/android/incallui/ringtone/](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/incallui/ringtone/) \n [Dialer/java/com/android/incallui/StatusBarNotifier.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/incallui/StatusBarNotifier.java)\n- VVM notifications \n [frameworks/base/telephony/java/android/telephony/TelephonyManager.java](https://android.googlesource.com/platform/frameworks/base/+/android16-release/telephony/java/android/telephony/TelephonyManager.java) \n [Telephony/src/com/android/phone/PhoneInterfaceManager.java](https://android.googlesource.com/platform/packages/services/Telephony/+/android16-release/src/com/android/phone/PhoneInterfaceManager.java) \n [Dialer/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/nougat-release/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java)\n\nNotification style for calls in Android 12 or higher\n----------------------------------------------------\n\nFor devices running Android 12 or higher, to provide\na consistent user experience for calls, we recommend that apps use the\n[`CallStyle`](https://developer.android.com/reference/android/app/Notification.CallStyle) notification style for incoming and ongoing calls.\nFor more information, see\n[New phone call notifications allowing for ranking importance of incoming\ncalls](https://developer.android.com/about/versions/12/features#new-calls).\n\nImplementation\n--------------\n\nDevice implementers may need to update Telecom/Telephony components that\nexpose APIs available for use by the default Dialer."]]