Comment 7 for bug 1530630

Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

The problem we have is that nuntium simply ignores the push notifications, so the upper layers never receive any signal, and it
wont trigger a download once mobile data is active.

func (mediator *Mediator) handleDeferredDownload(mNotificationInd*mms.MNotificationInd) {
        //TODO send MessageAdded with status="deferred" and mNotificationInd relevant headers
}

We would need to store the push notification locally in nuntium, send a signal to the upper layers (telepathy-ofono) so the indicator could display a notification asking the user to activate mobile data and then on nuntium trigger the downloads once it detects mobile data is active. That would be the easiest path for now.

If we wish to add them to the history service so they appear in messaging-app and the user has the chance to trigger the download
manually, more work will be needed, since that involves implementing the telepathy file transfer api.