I am rewriting in android studio an android app that was previously wrote using the .NET Maui framework, this app needs to be the default caller ID & spam app. On the first start of the app i need to get the user to select the app as the default one from the android pop-up menu (i know it is possible because it as always worked on Maui). So far i tried with this without any success.
val requestRoleIntent = roleManager.createRequestRoleIntent(RoleManager.ROLE_CALL_SCREENING)
startActivity(requestRoleIntent)
I have request the same permissions as in the Maui app so that can’t be the problem either. Does anyone know if i am getting something wrong?