android marshmallow - SMS_RECEIVED permission

前端 未结 5 1348
粉色の甜心
粉色の甜心 2020-12-20 01:51

i recently updated my app to support android 6 marshmallow. i followed the instruction on https://developer.android.com/training/permissions/requesting.html

and add

5条回答
  •  醉梦人生
    2020-12-20 02:50

    The Android 6 runtime permission android.provider.Telephony.SMS_RECEIVED gives you permission to receive that message when it is sent by the system SMS provider.

    You however are trying to broadcast that message yourself. I'm not sure that is permitted, and as you have found is not controlled by the same permission. (In fact, I assume that it has been locked down on Marshmallow so that only the system is able to notify apps of received SMS messages).

提交回复
热议问题