Why I am receiving Warning - this app does not meet Google Play permissions policy, even though my latest version doesn't require these permission?

后端 未结 5 2290
名媛妹妹
名媛妹妹 2021-01-01 21:47

It show this message

This app does not meet the Google Play permissions policy relating to the use of SMS or CALL_LOG. You must fix this before March

5条回答
  •  -上瘾入骨i
    2021-01-01 22:21

    I also received this warning on my last app version.

    Explanation: You are receiving this warning because somehow directly or indirectly you are using some permissions which does not meet the Google Play permissions policy.

    Indirectly means, may be any of the 3rd party library you are using in your project is already using those permissions. And when you build your project it merged all the Manifest file in a single Merged Manifest file. This is the reason you are getting this warning because your final manifest has any of those permission(s).

    Solution 1: After build your project,

    • Open your project's AndroidManifest file.
    • Open the Merged Manifest tab in the bottom.
    • Search for any of those permission. (example- READ_SMS)
    • If you get any, now it's time to remove them. Check the example

    Example: If you see READ_SMS permission in Merged Manifest file, so now open your project's AndroidManifest file and add the line written below to remove that permission from your project-

    
    

    Add the above permission line in your AndroidManifest file, and that's it. It will remove the Permission from the Merged Manifest file and your issue will be resolved.

    AndroidManifest file

    
    
    
        
        
    
        
    
            
                
                    
    
                    
                
            
        
    

    Solution 2: Replace/Remove those 3rd Party library which are using these permissions.

    UPDATE:

    Solution 3: For safe side you can add these lines in your AndroidManifest file.

    
    
    
    
    
    
    
    
    
    

    these lines will remove all the restricted permission(s) according to Permission Policy if any used.

    Hope it will be helpful.

提交回复
热议问题