-
Notifications
You must be signed in to change notification settings - Fork 31
4.3 notification support #19
Comments
I have created an initial, expirimental branch for using the 4.3 notification service classes instead of the accessibility service. Right now it just passes notifications and does not check to ensure the app is enabled in the notification service area of settings -> security. https://github.com/mcrosson/pebble-notifier/tree/43_notification_service_exp |
I just finished getting the above branch working, the notification processing needs a little tweaking but I was able to pull the full text of the notification out. One big issue that I ran into: NotificationListenerService classes do not run on the UI thread which causes the views.reapply call to crash. I had to create a processing thread that is run on the UI thread in order for this to work out properly. |
I did some further digging into this and discovered the following items that affect the code and approach. I've also been running my previously linked branch for >24 hours and all notifications have been received, processed and sent to my pebble without issue.
|
I made some real progress over the last few days with this set of changes. I have a generally working implementation at https://github.com/mcrosson/pebble-notifier/tree/notification_service_listener . There are some small bugs in the code, but overall it is working for the 4.3+ notification service listeners. I plan to continue to improve the branch until it is 100% matched for the pre-existing code base. |
@mcrosson Sounds great, thanks for your work! :D |
Any progress on this please? |
can you do a beta release over google play, or is it not ready at all? thanks for your work! |
Android 4.3 has an api for handling notifications now. It would be great to detect android 4.3 and use the built in api instead of using the accessibility service.
The text was updated successfully, but these errors were encountered: