Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Display push notification Actions[], clicking them can then trigger the PendingIntent on phone #904

Open
danoliver1 opened this issue Jun 9, 2020 · 5 comments

Comments

@danoliver1
Copy link

It would be extremely useful if MFA notifications could be actioned on the watch. A lot of companies now enforce multi-factor. Personally I get many MFA notifications throughout the day and would find it useful to not have to get my phone out to click "Yes, it's me" every time I log in.
This project is impressive, thank you for providing it as open-source!

@micrusa
Copy link
Collaborator

micrusa commented Jun 9, 2020

That would be very useful but I don't think google allows apps to do that and also I think it wouldn't be very safe to have it in the watch

@danoliver1
Copy link
Author

danoliver1 commented Jun 9, 2020 via email

@danoliver1
Copy link
Author

The AmazMod android phone app listens for notifications using NotificationListenerService and then forwards them to the watch app.
The Notification class returned by the NotificationListenerService has an array Actions[] which contains an icon, title and intent for each notification action.
It would be a game-changing feature if the AmazMod watch app could show the Action titles and then when you click them, the phone app triggers the PendingIntent.
I'm going to install all of the tooling and try to see if it's possible when I get the chance.

@micrusa
Copy link
Collaborator

micrusa commented Jun 26, 2020

The AmazMod android phone app listens for notifications using NotificationListenerService and then forwards them to the watch app.
The Notification class returned by the NotificationListenerService has an array Actions[] which contains an icon, title and intent for each notification action.
It would be a game-changing feature if the AmazMod watch app could show the Action titles and then when you click them, the phone app triggers the PendingIntent.
I'm going to install all of the tooling and try to see if it's possible when I get the chance.

I've tried with google mfa in Q and nougat and the notification doesn't have any action, it just opens an activity when you unlock the phone, I don't know if it's the same with other phones, but with these it's not possible

@danoliver1
Copy link
Author

danoliver1 commented Jun 26, 2020 via email

@danoliver1 danoliver1 changed the title Google MFA notifications Display push notification Actions[], clicking them can then trigger the PendingIntent on phone Jul 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants