Get "alert" of new voicemail

from the CommonsWare Community archives

At September 22, 2019, 1:34am, booeyoh asked:

Does anyone know of a broadcast or provider that can be tapped into to know when a new voicemail is received. It would be nice to get the detail of the vvm, but not 100% necessary. I have found the VoicemailContract provider, but it doesn’t give me anything when I query it and I have found the NEW_VOICEMAIL broadcast, but that throws a security error. It could be I am set up incorrectly too.

Any help would be appreciated.


At September 22, 2019, 11:50am, mmurphy replied:

Does any form of visual voicemail work on the device? AFAIK, it requires carrier support, so perhaps your carrier does not support the stuff needed for visual voicemail on Android.

Do you have more specifics? VoicemailContract seems to require ADD_VOICEMAIL as a permission (and, since that is dangerous, you also need to request it at runtime). The docs do not say that ADD_VOICEMAIL is needed for the broadcast, though.

You have the only two options I know of: observe VoicemailContract or listen for that broadcast. And both require carrier support, AFAIK.

At October 2, 2019, 4:44pm, booeyoh replied:

I was able to get it working with just the basic content provider functionality. Thanks for your help!