momo-wallet / mobile-sdk

If your business have a mobile app. You can use this SDK to integrate your mobile with MoMo App
78 stars 54 forks source link

[Bug] Android 11 not open app MOMO #58

Closed tungcyfeer closed 3 years ago

tungcyfeer commented 3 years ago

Because of the new policy for android 11 (sdk 30) about visibility package, merchant app now cannot open momo app. Please update new sdk with manifest changed following the docs.

momodevelopment commented 3 years ago

Hey @tungcyfeer If you know the specific set of apps that you want to query or interact with, such as apps that integrate with your app, or apps whose services you use, include their package names in a set of elements inside the element.

Manifest_30

Note: If you declare a element in your app's manifest, then the app associated with that package name appears in the results of any query to PackageManager that matches a component from that app. https://developer.android.com/training/package-visibility/declaring

So try to update your app's manifest configuration file, add below two lines to allow your app to open the MoMo app Production and the MoMo app UAT/testing

`

     <queries>

        <package android:name="com.mservice.momotransfer" />

         <package android:name="vn.momo.platform.test" />

     </queries>

`

tungcyfeer commented 3 years ago

Thank you, we have fixed it temporarily in our apps to publish store since last week. But I think you need to update this configurations to your lib, so merchant apps don't need add them more.