britannio/in_app_review

freezes app on iOS 18

Opened this issue · 10 comments

it appears that in_app_review 2.0.10 (and before) freezes any iOS 18 app when calling InAppReview.instance.requestReview(). only tested on simulator (18.1)

it appears that in_app_review 2.0.10 (and before) freezes any iOS 18 app when calling InAppReview.instance.requestReview(). only tested on simulator (18.1)

Thanks for filing an issue. I didn't have any luck reproducing this with a fresh Flutter app on the simulator (18.1 too).
Do you have any guidance for reproducing it?
I used flutter create then flutter pub add in_app_review then added the following code to the counter app:

const CircularProgressIndicator(),
const CircularProgressIndicator(),
const CircularProgressIndicator(),
ElevatedButton(
  onPressed: () {
    InAppReview.instance.requestReview();
  },
  child: const Text('Request Review'),
)

A video would be better but the spinners do keep spinning.

It also froze for me on 18.1 simulator and I was on 2.0.9

this might be related

#136

I can occasionally reproduce this on the simulator by disabling wifi on my mac but it's difficult to pinpoint the cause of this. It also fixes itself after 8 seconds. It's possible that the StoreKit requestReview() method is blocking the main thread due to a timeout of some sort.

image

To clarify, does the pop-up appear when the freeze occurs?

The pop up does not appear when the freeze occcurs

Same issue with the same context. Any suggestion?

我们也遇到相同的问题,请问怎么解决啊

Same issue with the same context. Any suggestion?