Stay organized with collections
Save and categorize content based on your preferences.
Android notifications are supported on Glass through Notification Sync.
When the Android system sends a notification on a user's phone, it also appears
in their timeline on Glass. This allows virtually any app available on Android
to display notifications on Glass with zero effort required on Glassware
development.
Notifications on Glass works synchronously with your Android mobile phone.
When you dismiss the notification on either of the devices, the system
dismisses the notification on the other one.
WearableExtender
provides extensions specifically for wearables. The following sections describe these extensions.
Actions
When you define a primary content action on the notification with
setContentIntent(),
the "Open on Phone" action appears on the Glass notification.
You can add a maximum of three actions to your app. For more information
on creating and handling actions for notifications, see
Add Action buttons.
Voice replies
When your notification requires a text response, Glass can transcribe your
voice. For more details on how to trigger voice recognition, see
Receiving Voice Input on a Notification.
Pages
To add more information to your notification without requiring users to open
your app on their handheld device, you add pages to your notification.
On Glass, these notifications have a "Show More" action that lets the user
swipe through the cards. To add pages to your notifications, see
Adding Pages to a Notification.
Stacks
If your app creates multiple notifications, you should group them into
a stack. On Glass, stacked notifications appear as card bundles.
To learn more about stacking, see
Stacking Notifications.
Background
Background images give context on where notifications are coming from. Use the
BigPictureStyle
on Android notifications to automatically generate the Glass notification. This
contextualized styling provides a better user experience. To see an example of
additional styling of notifications on Wear, see
Add Wearable Features.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eAndroid notifications are automatically mirrored on Google Glass through Notification Sync, requiring no extra Glassware development effort.\u003c/p\u003e\n"],["\u003cp\u003eNotifications are synchronized between your phone and Glass, dismissing on both devices when dismissed on one.\u003c/p\u003e\n"],["\u003cp\u003eGlass notifications support various enhancements like actions (including "Open on Phone"), voice replies for text input, and multiple pages for displaying more content.\u003c/p\u003e\n"],["\u003cp\u003eNotifications can be grouped into stacks (appearing as card bundles on Glass) and styled with background images for context.\u003c/p\u003e\n"]]],[],null,["# Notification Sync\n\nAndroid notifications are supported on Glass through Notification Sync.\nWhen the Android system sends a notification on a user's phone, it also appears\nin their timeline on Glass. This allows virtually any app available on Android\nto display notifications on Glass with zero effort required on Glassware\ndevelopment.\n\nNotifications on Glass works synchronously with your Android mobile phone.\nWhen you dismiss the notification on either of the devices, the system\ndismisses the notification on the other one.\n\n[`WearableExtender`](/glass/develop/gdk/developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender)\nprovides extensions specifically for wearables. The following sections describe these extensions.\n\nActions\n-------\n\nWhen you define a primary content action on the notification with\n[`setContentIntent()`](//developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html#setContentIntent(android.app.PendingIntent)),\nthe \"Open on Phone\" action appears on the Glass notification.\nYou can add a maximum of three actions to your app. For more information\non creating and handling actions for notifications, see\n[Add Action buttons](//developer.android.com/training/wearables/notifications/creating.html#ActionButtons).\n\nVoice replies\n-------------\n\nWhen your notification requires a text response, Glass can transcribe your\nvoice. For more details on how to trigger voice recognition, see\n[Receiving Voice Input on a Notification](//developer.android.com/training/wearables/notifications/voice-input.html).\n| **Note:** While voice input works on Glass, pre-defined text responses aren't supported.\n\n\nPages\n-----\n\nTo add more information to your notification without requiring users to open\nyour app on their handheld device, you add pages to your notification.\nOn Glass, these notifications have a \"Show More\" action that lets the user\nswipe through the cards. To add pages to your notifications, see\n[Adding Pages to a Notification](//developer.android.com/training/wearables/notifications/pages.html).\n\nStacks\n------\n\nIf your app creates multiple notifications, you should group them into\na stack. On Glass, stacked notifications appear as card bundles.\nTo learn more about stacking, see\n[Stacking Notifications](//developer.android.com/training/wearables/notifications/stacks.html).\n\nBackground\n----------\n\nBackground images give context on where notifications are coming from. Use the\n[`BigPictureStyle`](//developer.android.com/reference/android/app/Notification.BigPictureStyle.html)\non Android notifications to automatically generate the Glass notification. This\ncontextualized styling provides a better user experience. To see an example of\nadditional styling of notifications on Wear, see\n[Add Wearable Features](//developer.android.com/training/wearables/notifications/creating.html#AddWearableFeatures)."]]