question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-URI Actions in Notifications do not work

See original GitHub issue

Home Assistant Android version: 2022.2.1-minimal

Android version: 12 (SP1A.210812.016.C1)

Phone model: Pixel 3

Home Assistant version: 2022.2.6

Last working Home Assistant release (if known): N/A

Description of problem:

Tapping a button in a notification does nothing unless the action value is "URI". For URI actions, tapping the button opens the specified URI as expected. For REPLY actions, the input box appears when the button is clicked, but when the send button is tapped, it turns into a spinner and nothing happens. In all other cases, tapping the button does literally nothing. The notification does not get dismissed, and no event is sent to Home Assistant.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):

The log below covers from the time I clicked Call Service in the Home Assistant Developer Tools UI until the time I took the screenshot below. I tapped the click button in the notification before taking the screenshot, but absolutely nothing was logged when I did.

--------- beginning of main
02-17 16:37:11.638  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:12.643  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:12.882   984  2284 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-17 16:37:13.650  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:13.931  4998 15784 D WebSocketRepository: Websocket: onMessage (text)
02-17 16:37:13.946  4998 15784 D WebSocketRepository: Message number 183 received: {"id": 183, "type": "event", "event": {"message": "test 0efb84dc", "data": {"actions": [{"action": "MYACTION", "title": "click"}]}, "hass_confirm_id": "8140e0d0d04d5192c8b7a8a1f09baf22"}}
02-17 16:37:13.968  4998  5035 D WebSocketRepository: Sending message 307: {type=mobile_app/push_notification_confirm, webhook_id=78a700eeec9e5d5a630ba595de3ade7fd5f9c525afa0a9ff6750a117296638c8, confirm_id=8140e0d0d04d5192c8b7a8a1f09baf22, id=307}
02-17 16:37:13.968  4998  5035 D WebSocketRepository: Message number 307 sent
02-17 16:37:13.976  4998 15784 D WebSocketRepository: Websocket: onMessage (text)
02-17 16:37:13.977  4998 15784 D WebSocketRepository: Message number 307 received: {"id": 307, "type": "result", "success": true, "result": null}
02-17 16:37:14.002  4998  4998 D MessagingService: Creating notification with following data: {action_1_key=MYACTION, action_1_title=click, action_1_uri=null, message=test 0efb84dc}
02-17 16:37:14.039  4998  4998 D MessagingService: Show notification with tag "null" and id "164959635"
--------- beginning of system
02-17 16:37:14.277  1501  1501 W NotificationHistory: Attempted to add notif for locked/gone/disabled user 0
02-17 16:37:14.295  2244  2244 D InterruptionStateProvider: No bubble up: not allowed to bubble: 0|io.homeassistant.companion.android.minimal|164959635|null|10153
02-17 16:37:14.297  2244  2244 W NotifBindPipeline: Row is not set so pipeline will not run. notif = 0|io.homeassistant.companion.android.minimal|164959635|null|10153
02-17 16:37:14.297  2244  2384 D PeopleSpaceWidgetMgr: Sbn doesn't contain valid PeopleTileKey: null/0/io.homeassistant.companion.android.minimal
02-17 16:37:14.653  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:14.881   984  2284 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-17 16:37:15.656  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:15.691   977  1017 D VSC     : @ 21848.205: [Significant Motion] Stop motion_detect
02-17 16:37:15.691   977  1017 D VSC     : @ 21848.206: [Significant Motion] Request accel, interval 20.0 ms, latency 3200.0 ms
02-17 16:37:15.691   977  1017 D ASH     : @ 21848.215: SensorType 195 resampler quality 0
02-17 16:37:16.666  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:16.897   984  2284 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-17 16:37:17.597   962   962 I android.hardware.health@2.0-service.crosshatch: Entry state_: 1 charger_status: Charging batteryLevel: 100
02-17 16:37:17.597   962   962 I android.hardware.health@2.0-service.crosshatch: Exit state_: 1 batteryLevel: 100
02-17 16:37:17.670  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:17.944   977  1017 D VSC     : @ 21850.469: [WO] Proposed rotation: 1, flat angle threshold: 40
02-17 16:37:17.944   977  1017 D VSC     : @ 21850.469: [WO] orientation angle 46, orientation 1
02-17 16:37:17.944   977  1017 D VSC     : @ 21850.469: [WO] Gyro angle integrated: 44.257637
02-17 16:37:17.944   977  1017 D VSC     : @ 21850.469: [WO] rejected by isOrientationAngleAcceptable
02-17 16:37:18.680  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:18.908   984  2284 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-17 16:37:19.691  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:19.937   977  1017 D VSC     : @ 21852.462: [WO] Proposed rotation: 1, flat angle threshold: 40
02-17 16:37:19.937   977  1017 D VSC     : @ 21852.463: [WO] orientation angle 45, orientation 1
02-17 16:37:19.937   977  1017 D VSC     : @ 21852.463: [WO] Gyro angle integrated: 64.808731
02-17 16:37:19.937   977  1017 D VSC     : @ 21852.463: [WO] rejected by isOrientationAngleAcceptable
02-17 16:37:19.957  1501  1737 V DisplayPowerController[0]: Brightness [0.10676457] reason changing to: 'automatic', previous reason: 'automatic [ dim ]'.
02-17 16:37:20.125  4998  4998 D TileExtensions: Tile: tile_1 is in view
02-17 16:37:20.127  4998  4998 D TileExtensions: Attempting to set tile data for tile ID: tile_1
02-17 16:37:20.131  4998  4998 D TileExtensions: Tile data set for tile ID: tile_1
02-17 16:37:20.131  2244  2384 D ControlsListingControllerImpl: Subscribing callback, service count: 2
02-17 16:37:20.354  2244  2384 D ControlsListingControllerImpl: Unsubscribing callback
02-17 16:37:20.694  1501  1707 W IorapForwardingService: No service published for: iorapd
02-17 16:37:20.905   984  2284 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-17 16:37:21.369  1501  2035 V KeyCombinationManager: Performing combination rule : KEYCODE_VOLUME_DOWN + KEYCODE_POWER

Screenshot of problem:

image

Additional information:

Service call:

service: notify.mobile_app_pixel_3
data:
  message: test 0efb84dc
  data:
    actions:
    - action: MYACTION
      title: click

This is the first time I have been able to use notifications in the mobile app, as I use the F-Droid builds and do not have Google Play Services on my phone. I am excited to get them working with the new WebSocket connection!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AdmiralNemocommented, Feb 18, 2022

Awesome, that works! Thanks for figuring it out so quickly!

0reactions
dshokouhicommented, Aug 1, 2022

@mwilky please do not comment on old and closed issue. Instead open a new one. There are no events on URI actions. You probably want #2524

Read more comments on GitHub >

github_iconTop Results From Across the Web

857464 - SimplePush Notifications - Desktop support
In bug 822712, we landed support for push notifications in B2G applications. We should extend this to non-manifest-based web pages. I think, one...
Read more >
8 Ways to Fix Instagram Notifications Not Working
8 ways to fix your Instagram notifications when they're not working properly · 1. Open the Settings app. · 2. In the Notification...
Read more >
how to fix app notifications not working on android - YouTube
how to fix app notifications not working on android | | how to fix notification problem | samsung m51 how to fix not...
Read more >
Chapter 7 – University Manual
Notification of resignation or retirement by a faculty member under tenure shall be made early enough to obviate serious embarrassment to the institution,...
Read more >
Instagram Notifications Not Working 2022 [Quick Fix] - AirDroid
If you're troubleshooting this problem, the first thing you should do is check your notification settings. Ensure you've allowed notifications ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found