5 ms·
>You can access notifications through new APIs that let you register a notification listener service and with permission of the user, receive notifications as t
by notatoad 13y ago
>You can access notifications through new APIs that let you register a notification listener service and with permission of the user, receive notifications as they are displayed in the status bar...You'll be able to launch any intents attached to the notification or its actions, as well as dismiss it from the system, allowing your app to provide a complete user interface to notifications.
wow. that should have some interesting possibilities.
- randallu 13y agoHello smartwatches!
- archivator 13y agoThis can be done on older versions as well but the app has to declare itself as an Accessibility Service, which is a massive hack. Google are fixing that by mirroring that specific use case in a separate service.
- abirkill 13y agoCorrect me if I'm wrong, but I think that the Accessibility Service hack only allows apps to read notifications? One of the other advantages of this new API functionality seems to be that it will also allow apps to dismiss notifications, or detect when the user has dismissed a notification. This will allow notifications to be kept in sync between the system and an app (or on a linked device like a smartwatch), which is a very nice addition.