Android O can't receive broadcast Intent.ACTION_NEW_OUTGOING_CALL -


in application, can receive android.intent.action.phone_state can't receive intent.action_new_outgoing_call on android o. if use android n or android m work fine.

i have register first broadcast in androidmanifest file , second in foreground service, none of them can receive intent.action_new_outgoing_call, can receive android.intent.action.phone_state.

if know how fix it, please post answer, in advance.

but still confused, because phone not ask me give permission work fine. maybe bug or feature of android o ?

its feature of android o.

previously, when request permission(android.permission.read_phone_state) of permission group(phone) , user grants it, allowed use permission(android.permission.process_outgoing_calls etc.) of permission group(phone) freely(without requesting user again).

now android o, if app hold permission(android.permission.read_phone_state) of permission group(phone), need call requestpermission again other permission(android.permission.process_outgoing_calls) of same group. not prompt user grant permission(android.permission.process_outgoing_calls) , permission automatically granted if hold permission(android.permission.read_phone_state) of same permission group(phone).


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -