When my app exist broadcast receiver not working? Android 6.0.1 Api23 -


it's not working on api23 ver6.0.1 below version working fine.

my manifest code on below:

<receiver android:name=".phonestatereceiver">         <intent-filter android:priority="2">             <action android:name="android.intent.action.phone_state" />             <action android:name="android.intent.action.user_present" />             <category android:name="android.intent.category.default" />         </intent-filter>     </receiver> 

can me..

from api level 23 android did changes in granting permissions, user have option revoke permission time.

according docs -

requesting permissions @ run time

system permissions divided 2 categories, normal , dangerous:

  1. normal permissions not directly risk user's privacy. if app lists normal permission in manifest, system grants permission automatically.

  2. dangerous permissions can give app access user's confidential data. if app lists normal permission in manifest, system grants permission automatically. if list dangerous permission, user has explicitly give approval app.

use this link understand flow of requesting permissions.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -