in_app_purchase using in_app_purchase_android 0.2.3, should use atleast 0.2.3+2 to fix restore purchases

This issue has been created since 2022-09-22.

Why was the topic closed if we still have the problem in the current version?

Are you saying you can reproduce this with in_app_purchase_android 0.2.3+2?

Originally posted by @stuartmorgan in #107454 (comment)

The latest in_app_purchase version still has broken Android restore purchases, as it does not use in_app_purchase_android 0.2.3+2 or above. Is this just a versioning problem? Thanks

Note: You can override in_app_purchase_android to 0.2.3+2 or above to fix this issue.

JackWRadford wrote this answer on 2022-09-22

'flutter pub get' just wasn't upgrading from in_app_purchase_android version 0.2.3 to 0.2.3+4. Removing in_app_purchase and re-adding it, got the latest in_app_purchase_android version.

stuartmorgan wrote this answer on 2022-09-22

it does not use in_app_purchase_android 0.2.3+2 or above

It does not require 0.2.3+2, but that's not the same thing as not using it. The constraint is ^0.2.1, which is equivalent to >=0.2.1 <3.0, so it will use 0.2.3+2 as long as you upgrade (as long as there's no other conflict that would prevent it, but that's very unlikely to happen with federated plugin implementations).

'flutter pub get' just wasn't upgrading from in_app_purchase_android version 0.2.3 to 0.2.3+4

Unless you don't have a lock file (and if you are developing an app, the normal case is that you do), flutter pub get doesn't update things. flutter pub upgrade is the command to update your dependencies (as mentioned in the issue you referenced).

JackWRadford wrote this answer on 2022-09-22

it does not use in_app_purchase_android 0.2.3+2 or above

It does not require 0.2.3+2, but that's not the same thing as not using it. The constraint is ^0.2.1, which is equivalent to >=0.2.1 <3.0, so it will use 0.2.3+2 as long as you upgrade (as long as there's no other conflict that would prevent it, but that's very unlikely to happen with federated plugin implementations).

'flutter pub get' just wasn't upgrading from in_app_purchase_android version 0.2.3 to 0.2.3+4

Unless you don't have a lock file (and if you are developing an app, the normal case is that you do), flutter pub get doesn't update things. flutter pub upgrade is the command to update your dependencies (as mentioned in the issue you referenced).

Thank you. Yeah i forgot to run 'flutter pub upgrade' and instead just manually increased the in_app_purchase version number in my pubspec.yaml.

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-10-05
Star Count 145512
Watcher Count 3569
Fork Count 23398
Issue Count 11205

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
请问Docker images使用的是多少端口呢,不需要开端口吗 我run的时候使用-P(大写的P)run 并没有随机给端口 3 2021-08-24 2022-10-01
npm i 安装报错,加上--legacy-peer-deps才能正常安装 1 2022-09-09 2022-09-30
Question about image sampling 1 2021-06-11 2022-10-04
drange of the generative model 1 2021-07-01 2022-07-25
infinite loop when there's an opencpu error during email sending 0 2021-05-30 2022-09-25
Failed proper ending 3 2021-07-23 2022-09-25
multer-s3 code not executing sometimes 2 2020-07-18 2022-10-02
Support OGC API - Records 6 2021-03-21 2022-09-04
[NEW TOOL] [scATACs-seq] ArchR 0 2020-10-30 2022-09-27
Add option to render compact parse trees 0 2021-06-04 2022-10-05
Improve notifications 6 2020-08-20 2022-09-28
Error: While trying to resolve module `canvg` from file 6 2021-10-05 2022-09-17
Compatibility with babashka 3 2021-12-08 2022-09-28
App rejected by playstore 5 2021-09-07 2022-07-25
Remove irrelevant server settings 1 2020-07-19 2022-09-03
Errors in Makefile.tiny - affects attiny167, attiny48 1 2021-10-29 2022-09-29
stream data from server 9 2021-05-11 2022-09-27
Correct Syntax For Specifying Header Key Value Pairs 6 2021-04-08 2022-09-27
Normalize NormalizationSummary data in new table 0 2022-09-01 2022-08-29
Replication settings show "Invalid fields" message when a 403 error is returned after trying to save updates 1 2022-09-01 2022-08-29
Test new WeKan with Meteor 2.7.2 39 2022-05-17 2022-08-17
[Question/Feature] Ignore imports in the tests 1 2021-01-20 2022-09-29
Completely Transparent Tabs in gnome console 2 2022-08-31 2022-09-22
Improve Document on pingBeforeActivateConnection 0 2022-07-05 2022-09-14
Different font sizes for different buffers 4 2022-04-27 2022-10-04
Georgia testing data cutoff 11 2022-01-17 2022-09-28
Describe failpoint in more detail 1 2021-11-16 2022-09-16
How to use vmess phrase in ubuntu? 6 2022-10-04 2022-10-05
Strange output from GHC: "exprType TYPE: Text" 1 2022-03-16 2022-09-22
Device OTA 0 2021-12-31 2022-01-12
Open 2 different taskpane using office.js 2 2022-03-30 2022-10-03
Files without extension are filtered in `ElectronFileDialogService` even though no filter is provided 4 2022-06-21 2022-08-21
Road from pinmux to pinctrl 27 2021-10-26 2022-09-19
Running examples from the app 1 2021-03-22 2022-09-29
Selenium: TimeoutException in complex mask with many update="@form" 12 2022-06-03 2022-10-04
Exceptions should inherit `std::exception` 2 2021-06-24 2022-10-03
Add a Networks Menu in Service and Periodicity Maps 1 2022-03-22 2022-09-27
Network discovery document used protocols 4 2022-03-19 2022-09-27
Usage of thumbnail picture for posts 10 2017-03-07 2022-10-02
能不能把数据预处理部分也用python代码 2 2021-07-09 2022-09-15
Stacktrace displayed in MUnit test that intercepts the exception 1 2021-08-17 2022-09-23
VSCode can't copy files between two workspaces opened inside the same WSL VM 7 2022-01-21 2022-09-15
process::Command data loss when using Stdio::inherit for stdin and stdin has been read from 6 2022-06-08 2022-10-01
v1.8.x MKLDNN BatchNorm with even number of channels - backward call crashes with MXNetError: Check failed: !is_view 4 2022-01-28 2022-09-18
Following the closed issue #1824, apparently not resolved : [Microsoft.EdgeWebView2Runtime]Unable to install, error code 2147748098 9 2022-01-29 2022-09-21
Switch cloudflare_worker/wrangler.toml from type = "rust" to type = "javascript" 0 2021-09-21 2022-10-02
Add startup probe field for Cloud Run service resource 1 2022-09-09 2022-09-17
Need Help in Finding Official CDN Link for Highcharts/Exporting 3 2022-01-11 2022-09-28
[QUESTION] Which Partition to use when Performing a Offset Seek using AIOKafkaConsumer? 6 2021-08-05 2022-09-25
Source-build behavior control update 1 2022-08-30 2022-09-15