PatilShreyas / EasyUpiPayment-Android

📱Android Library to implement UPI Payment integration easily in Android App 💳💸
https://eupipay-docs.netlify.app/
Apache License 2.0
360 stars 120 forks source link

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

Open altruistindia opened 2 years ago

altruistindia commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

sharmaAshish-dev commented 2 years ago

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.👍