Have a good day. Our application uses carrier privileges, we, as an operator application, provide the function of replacing sim with eSim, when activated and receiving LPA, we show LUI where the user must confirm permission for our application to install eSim (EMBEDDED_SUBSCRIPTION_RESULT_RESOLVABLE_ERROR) , but after confirmation we immediately get a null error. If you perform the installation again, the LUI is shown again with a suggestion to abort the eSim installation operation, if you click continue - the installation is successful, how to remove this problem, In order not to re-call the LPA installation method twice?
@RequiresApi(api = Build.VERSION_CODES.P)
private void handleResolvableError(Intent intent, PluginCall call) {
PendingIntent callbackIntent = PendingIntent.getBroadcast(
getContext(),
Activity.RESULT_OK/* requestCode -1*/,
intent,
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? PendingIntent.FLAG_MUTABLE : PendingIntent.FLAG_UPDATE_CURRENT);
try {
mgr.startResolutionActivity(
getActivity(),
Activity.RESULT_OK /* requestCode -1*/,
intent,
callbackIntent);
} catch (IntentSender.SendIntentException e) {
Log.d("CODE_LOG_E", String.valueOf(e.getLocalizedMessage()));
}
}