initInAppPurchase(){//创建监听:finalStream<List<PurchaseDetails>>purchaseUpdated=_inAppPurchase.purchaseStream;// 获得新订阅_subscription=purchaseUpdated.listen((List<PurchaseDetails>purchaseDetailsList){_listenToPurchaseUpdated(purchaseDetailsList);},onDone:(){_subscription.cancel();},onError:(Object e...
constList<String>iosProductIds=['com.xxxx.week','com.xxxx.year'];constList<String>androidProductIds=['com.xxxx.week','com.xxxx.year'];abstractclassPayPlatform{staticfinalinstance=FlutterInappPurchase.instance;finalcompleter=Completer<List<IAPItem>>();List<IAPItem>list=[];List<Purchase>planList=...
使用flutter的in_app_purchases 、、 我正在尝试创建一个应用程序,可以处理在应用程序购买使用Flutter.I。我正在使用in_app_purchase 0.2.1插件.I已设法设置我的产品在谷歌play开发人员控制台根据需要,但当尝试从应用程序检索它时,我能够成功地连接到商店,但我无法检索我的产品,它总是显示为产品找不到我阅读了本教...
购买失败Flutter flutter_inapp_purchase 是一个用于在Flutter应用中实现内购功能的插件。它提供了一种简单的方式来处理应用内购买的流程,包括商品列表的获取、购买流程的处理以及购买历史的管理。 该插件的主要特点和优势包括: 简单易用:flutter_inapp_purchase提供了简洁的API,使开发者能够轻松地集成内购功能到他们的Fl...
this.purchaseID = transaction.transactionIdentifier, Should check if restored and if so take the identifier from the origional transaction. I'm on the latest version in_app_purchase: ^0.3.4+16 and flutter 1.20.3 stable channel Everytime when I restart my app and call _connection.queryPastP...
Flutter - How to verify InAppPurchases (iOS) Ask Question Asked 4 years, 8 months ago Modified 3 years, 1 month ago Viewed 9k times 7 I've tried to implement in-app purchases of non-consumable items but I got stuck with the verification of the purchase, atleast on iOS. Whenever I ...
FlutterInappPurchase.instance.getProducts(_productLists); [BackgroundTask] Background Task 13 ("SKProductsRequest"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task...
Use case I have a problem when using in_app_purchase 3.2.0. Background, I am developing an application that has autosubscription. In order to test, I use a sandBox account. When I make the first purchase, I receive a notification, initia...
Steps to reproduce I used the third-party plugin flutter_inapp_purchase: ^5.4.2 before, and Apple and Google internal purchase subscriptions have been connected and are now online. This plugin seems to be no longer maintained, and I plan...
Flutter version: 3.16.8 on channel stable Package version: in_app_purchase 3.1.11 Operating System: iOS 17.2