UPI App Deep linking using Intent - inconsistent and buggy behavior

前端 未结 4 947
轮回少年
轮回少年 2020-12-08 08:29

I have deeplinked UPI apps from my android native app using intent. I have tested this with various UPI apps like BHIM, PhonePe, AXIS, UnionBank, Pockets etc.

I crea

4条回答
  •  北海茫月
    2020-12-08 09:17

    Here is how I solved it for Redmi Note 5 Pro and other MI phones:

    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(UPI));
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
    } else {
        Toast.makeText(this, "No application available to handle this request!", Toast.LENGTH_SHORT).show();
    }
    

提交回复
热议问题