Comments (15)
Have to signed baking and purchase agreement on appstoreconnect?
from flutter.
@awais019 Hello, I don't quite understand what you mean, could you describe it in more detail?
from flutter.
You need to sign agreement on app store connect to use in app purchases
from flutter.
Yes, it is necessary. @awais019
from flutter.
I'm also facing an error while implementing buy non consumable, Execution stops at retrieve receipt data, and app crashes before buying. Do you know how can I solve it
from flutter.
@giantss
Can you provide a minimal reproducible code sample that shows the reported behavior ?
from flutter.
from flutter.
@giantss
I suggest you to go through Flutter's package implementation https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase/example and also https://codelabs.developers.google.com/codelabs/flutter-in-app-purchases#0 to see if there's anything missing from code implementation point of view in your setup.
from flutter.
Thank you for the information you provided. I have checked it and have not found any missing parts. When I use the flutter_inapp_purchase: ^5.4.2
plugin, everything works perfectly. According to my reproduction steps, I copied the code in the demo to my project and only changed _kProductIds
to the valid product id configured by my Google backend. Why can't I get it with just this one change? The environment is exactly the same.
from flutter.
I found a clue. When the product list is returned empty, the console will output two identical logs. But I don't know how to solve it?
@darshankawar
from flutter.
The log says getSkuDetails() failed for queryProductDetailsAsync()
. Check the response code which is 3 and see what it represents. You may check below links for further reference:
https://stackoverflow.com/questions/55742321/billingclient-getskudetails-failed-response-code-6
https://www.reddit.com/r/androiddev/comments/120mgbc/handling_inapp_subscriptions_status/
from flutter.
日志显示
getSkuDetails() failed for queryProductDetailsAsync()
。检查响应代码 3,看看它代表什么。您可以查看以下链接以获取进一步参考:https://stackoverflow.com/questions/55742321/billingclient-getskudetails-failed-response-code-6
https://www.reddit.com/r/androiddev/comments/120mgbc/handling_inapp_subscriptions_status/
Thanks for your reply, but I still have no progress on this problem on Android.
from flutter.
6. Build a signed apk. flutter build apk will work for this, the gradle files in this project have been configured to sign even debug builds.
7. Upload the signed APK from step 6 to the PDC, and publish that to the alpha test channel. Add your test account as an approved tester. The BillingClient APIs won't work unless the app has been fully published to the alpha channel and is being used by an authorized test account. See [here](https://support.google.com/googleplay/android-developer/answer/3131213) for more info.
Are these two steps necessary? My situation is a little different. I am replacing the plugin instead of using it for the first time, so the product IDs are also created in advance (the ones that are being used online).
@darshankawar
from flutter.
My problem has been solved. These are the steps that must be done.
- Packaging. Currently, PDC can only transfer
aab
, notapk
. - Internal beta release test.
- Use the test account (the account that PDC has added to the test) to log in to the Google Store.
- Then debug and install, and you can get the price list of the PDC configuration normally.
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- [Android, iOS] Write integration tests to test `SystemUiMode` expected behavior HOT 1
- [ios 18] Launching debug mode app from the home screen (not from the debugger) segfault crashes on launch at `-createTouchRateCorrectionVSyncClientIfNeeded` HOT 7
- `HttpException: Connection closed before full header was received, uri = http://localhost:52097/json` HOT 3
- ☂️ HTML renderer post-deprecation tasks HOT 1
- The documented CI Flutter build mechanism does not include iOS entitlements HOT 5
- Devicelab microbenchmarks take a long time, are close to the timeout limit HOT 6
- AlertDialog.adaptive.clipBehavior is non-nullable HOT 5
- Isolates are taking more memory than expected HOT 2
- TextOverflow ellipsis with TextStyle height 1 cut off the letter HOT 6
- flutter 3.24.1 create test drive run failed on android HOT 9
- The application does not run on any device. HOT 3
- [tool_crash] FileSystemException: Deletion failed, OS Error: The system cannot find the file specified., errno = 2 HOT 2
- Failure to run app compiled to WASM with error "Target dart2wasm failed: ProcessException: Process exited abnormally with exit code 64" HOT 1
- [pigeon] Support sealed classes HOT 1
- _kMaxDroppedSwipePageForwardAnimationTime is too long HOT 5
- [go_router] pop() doesn't work in extension on GoRouter HOT 2
- Add missing tests for `requestFocus` routes parameter HOT 1
- [go_router] Exception Multiple widgets used the same GlobalKey. HOT 4
- Can the ascent and descent of Text be set? HOT 10
- [tool_crash] StateError: Bad state: Stream has already been listened to. 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 flutter.