Skip to content

Incoming SMS can be received by Telephony but not imported/notified until Messaging is opened #155

Description

@RankoR

A user reported that SMS verification codes from GPSurgery / NHSNoReply were not appearing in Messaging and notifications only showed a generic Message.

The bugreport shows the SMS was delivered by telephony and handed to Messaging, but the app's receive action did not run until the user opened Messaging about 1 minute later. The first click on the notification didn't open the Messaging app.

From logs:

  • 06-15 11:32:27.448: modem/IMS reports a new SMS
  • 06-15 11:32:27.601: sender GPSurgery checked and not blocked
  • 06-15 11:32:27.749: SmsReceiver.deliverSmsMessages
  • 06-15 11:32:27.760: ActionServiceImpl#1000 job is scheduled
  • No ReceiveSmsMessageAction execution at that time
  • 06-15 11:33:28.433: user opens Messaging
  • 06-15 11:33:28.866 through 11:33:29.746: queued SMS receive actions finally run and messages are imported
  • Notification update around this time is for an unrelated conversation, not the newly imported SMS conversations

This suggests the SMS delivery path reaches Messaging, but the legacy JobIntentService / ActionServiceImpl work can remain queued while the app is in the background.

SMS delivery reaches SmsReceiver.deliverSmsMessages, but ReceiveSmsMessageAction does not run until the app is opened later. During that window the message is not visible in the app and the notification is generic or missing useful content.

Suspected area: SmsDeliverReceiver / SmsReceiver.deliverSmsMessages() -> ReceiveSmsMessageAction.start() -> ActionServiceImpl.enqueueWork() / JobIntentService.

I wasn't able to reproduce it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions