Comments (7)
Anyone?
from play-billing-samples.
Are you using new Play Billing library or modified TrivialDrive sample?
From what I see, they both explicitly define the package inside serviceIntent:
serviceIntent.setPackage("com.android.vending");
Maybe, it's just a side-effect of "cracking" the system? How often does it happen?
from play-billing-samples.
I am using the new library. Well, the number of crashes is low but it also happens on startup when checking purchases and it's not good that the app crashes even though the user has installed illegal software on his device. You should look into this
from play-billing-samples.
My guess is that hack tools sometimes are removing explicit package name from the intent on the fly and trying to represent themselves as a Play Store.
So there is not much we can do except including other explicit variables inside the intent in next library release, but they can also be removed.
I think the best solution for developers would be catch IllegalArgumentException from BillingClient.startConnection
method.
And for security we strongly recommend using our backend API for all purchases verification.
from play-billing-samples.
FYI, while I understand why it's recommended to use the backend API for purchase verification, this only really works if the app has user sign-in and a backend.
from play-billing-samples.
@gorgon of course I am using backend verification with PHP code. I just wanted to know if there was a gentle way to solve the crash without having to catch the Exception explicitly on my side.
from play-billing-samples.
Thanks for reporting this.
I'm closing this issue because this forum is for issues with the sample.
Stackoverflow might be a better forum.
Please reopen if you still think this is an issue with the sample.
from play-billing-samples.
Related Issues (20)
- The queryProductDetailsAsync doesn't return the latest base plan and offer HOT 1
- Blank pop-up showing after launch Billing Flow HOT 2
- Android GPBL 6.0.0 : Getting multiple callback in OnBillingDisconnected & onBillingSetupFinished method. HOT 8
- In querySubscriptionPurchases() , after check !billingClient.isReady , should return ?
- Bug: inconsistent PricingPhases.getPricingPhaseList results, as some show a single item, and some show multiple HOT 9
- upgrade or downgrade HOT 1
- Too many bind requests(999+) for service Intent HOT 10
- Able to purchase monthly subscriptions but not able to purchase annual subscriptions HOT 2
- ClassyTaxiServer deploy failed with non-zero exit code 2 HOT 3
- SecurityException: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts HOT 2
- Store billing client inside Application scope HOT 4
- 最近发现端上无法获得平台配置的订阅商品优惠标签 HOT 1
- why not add ProductDetails.getOriginalJson for v5+?
- Price discounts for subscriptions with promo code
- Payment pop-up style issue
- Need help! Application changes orientation on start billing flow HOT 2
- All Java samples need to be upgraded to version 6.0.1 of the billing library HOT 2
- Switch Base Plan Error PG-GEMF-01 HOT 2
- Missing purchase in successful purchase result HOT 2
- why does 'not eligible for the free trial` show? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-billing-samples.