if (ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_DENIED){ ActivityCom
Don't forget to write the permissions without extra spaces in the manifest. In my case i had:
But look, at the end, there's an extra space. Just write it the right way
And it's working now