Calling within the application may involve some security issues, so in 6.0, the phone permission is dangerous and needs to be actively applied for. The solution for our project is to call the system and bring the number. This will definitely not There will be permission issues
Android has a method to check whether there is any permission currently, but it must be wrapped with try catch. If there is no permission you want, an exception will be reported. If you want to obtain it, there is no way. You can only check it and then notify the user to set it in the settings. The specific code will be posted tomorrow. . . .
I have also encountered this now. The system has granted permissions, but Huawei’s own security software has disabled the permissions. Then when making a call, it prompts:
`this app not allowed to StartActivity:Intent { act=android.intent.action.CALL dat=tel:xxxxx }`
Permissions have already been obtained when detecting system permissions, so there can be no relevant prompts. By the way, have you solved it now?
Calling within the application may involve some security issues, so in 6.0, the phone permission is dangerous and needs to be actively applied for. The solution for our project is to call the system and bring the number. This will definitely not There will be permission issues
Android has a method to check whether there is any permission currently, but it must be wrapped with try catch. If there is no permission you want, an exception will be reported. If you want to obtain it, there is no way. You can only check it and then notify the user to set it in the settings. The specific code will be posted tomorrow. . . .
There’s no way around this
I have also encountered this now. The system has granted permissions, but Huawei’s own security software has disabled the permissions. Then when making a call, it prompts:
Permissions have already been obtained when detecting system permissions, so there can be no relevant prompts. By the way, have you solved it now?