I wonder if the sms-received message could not be handled in a different minimal html page. (remember that we can specify another page in the manifest). This could be for another bug though, but I think it makes sense.