Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

UPI Payment is not showing in Android level 11 & 10. #149

Open
altruistindia opened this issue Feb 16, 2022 · 4 comments
Open

UPI Payment is not showing in Android level 11 & 10. #149

altruistindia opened this issue Feb 16, 2022 · 4 comments
Assignees

Comments

@altruistindia
Copy link

Write information about Bug/Feature Request here
UPI payment option is not showing in android level 10 and 11, but it showing in lower level

@sharmaAshish-dev
Copy link

sharmaAshish-dev commented Feb 21, 2022

When an app targets Android 11 (API level 30) or higher and queries for information about the other apps that are installed on a device, the system filters this information by default. The limited package visibility reduces the number of apps that appear to be installed on a device, from your app's perspective.

Solution:
you have to add the following code in your manifest file anywhere outside tag.

@Rajkumar9898
Copy link

When an app targets Android 11 (API level 30) or higher and queries for information about the other apps that are installed on a device, the system filters this information by default. The limited package visibility reduces the number of apps that appear to be installed on a device, from your app's perspective.

Solution: you have to add the following code in your manifest file anywhere outside tag.

Above you have mention the code but you have not attached the code please provide it.

@Rajkumar9898
Copy link

I found the solution for it which is below,
put this code in manifest file and it will work fine.
Thanks.

    <!-- Chooser Intent for UPI apps -->
    <intent>
        <action android:name="android.intent.action.CHOOSER" />
        <data android:scheme="upi" />
    </intent>

    <!-- Package Specific UPI Apps -->
    <package android:name="in.amazon.mShop.android.shopping" />
    <package android:name="in.org.npci.upiapp" />
    <package android:name="com.google.android.apps.nbu.paisa.user" />
    <package android:name="com.phonepe.app" />
    <package android:name="net.one97.paytm" />
</queries>

@sharmaAshish-dev
Copy link

Yes, indeed it is. but only Intent filter can also do the job done. As it will also allows your app to query all apps that are provoked by "upi Scheme" rather than querying specific packages.👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants