Giter Site home page Giter Site logo

Comments (15)

awais019 avatar awais019 commented on September 28, 2024

Have to signed baking and purchase agreement on appstoreconnect?

from flutter.

giantss avatar giantss commented on September 28, 2024

@awais019 Hello, I don't quite understand what you mean, could you describe it in more detail?

from flutter.

awais019 avatar awais019 commented on September 28, 2024

You need to sign agreement on app store connect to use in app purchases

from flutter.

giantss avatar giantss commented on September 28, 2024

Yes, it is necessary. @awais019

from flutter.

awais019 avatar awais019 commented on September 28, 2024

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.

darshankawar avatar darshankawar commented on September 28, 2024

@giantss
Can you provide a minimal reproducible code sample that shows the reported behavior ?

from flutter.

giantss avatar giantss commented on September 28, 2024

my_new_app.zip
@darshankawar

from flutter.

darshankawar avatar darshankawar commented on September 28, 2024

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

giantss avatar giantss commented on September 28, 2024

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.

giantss avatar giantss commented on September 28, 2024

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?
image
@darshankawar

from flutter.

darshankawar avatar darshankawar commented on September 28, 2024

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.

giantss avatar giantss commented on September 28, 2024

日志显示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.

giantss avatar giantss commented on September 28, 2024

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.

giantss avatar giantss commented on September 28, 2024

My problem has been solved. These are the steps that must be done.

  1. Packaging. Currently, PDC can only transfer aab, not apk.
  2. Internal beta release test.
  3. Use the test account (the account that PDC has added to the test) to log in to the Google Store.
  4. Then debug and install, and you can get the price list of the PDC configuration normally.

from flutter.

github-actions avatar github-actions commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.