cafebazaar / Poolakey

Android In-App Billing SDK for Cafe Bazaar App Store
Apache License 2.0
71 stars 22 forks source link

We have taken a strange exception in the connection of the payment #59

Closed majid-khosravi closed 1 year ago

majid-khosravi commented 2 years ago

Hey guys, We're using the 1.2.3 version of the Poolakey, and sometimes we took an exception in the Payment.connect() function. It appears as a kind of the BazaarNotFoundException and already we did changes that related to PackageManager.

msmoradi commented 2 years ago

Hi @majid-khosravi , This library needs to connect to the Cafe Bazaar App Store, and if it cant for any reason, BazaarNotFoundException will be thrown.

Reasons might this happen :

Please check the above and let us know in more detail if there is still a problem.

majid-khosravi commented 2 years ago

Hey @msmoradi, thanks for your response. Honestly, after much investigating about this exception, I've found a reason for that. I think it happens when the Power Saving mode is ON at that device and then I made OFF this mode, I haven't taken that. For more detail, I could say that the phone was the Samsung Note11 with the Android SDK31. Given the fact that I've implemented the Android official approach to resolving the Packages Manager permission and set the , but we have this issue in that special device in the specific situation.

DHosseiny commented 1 year ago

Closed as it seams that it's some devices problem. But feel free to add more information to fix this. This will help us a lot. For example stack trace of problem.