i made an app that automatically makes a call if a pre configured code arrives in SMS.
I originally build this app on Android 9 and it worked well as long as i'm using Android 9, but my phone upgraded to Android 10 version and it just stopped working.
Analysing the logs and debuging the app, not a single error message happens. Debuging everything works fines and i call the acctivity as follows:
Intent in = new Intent(Intent.ACTION_CALL);
in.setData(Uri.parse(callPhone));
in.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(in);
But nothing happens. Its just doesnt make the call. I installed in other devices using other versions of android and still works, but not in Android 10.
Anyone knows if something different was implemented or if theres a new way to make a call on Android 10 version?
*NOTE: I also tried to update the code to use androidx library as changed to use targetSdkVersion 29, but still the same.