while (WidgetsBinding.instance.lifecycleState != AppLifecycleState.resumed) {
await Future.delayed(Duration(milliseconds: 400));
}
To check if the TestFlight window has disappeared before triggering the ATT prompt. After this, the app update has been approved.
while (WidgetsBinding.instance.lifecycleState != AppLifecycleState.resumed) {
await Future.delayed(Duration(milliseconds: 400));
}
To check if the TestFlight window has disappeared before triggering the ATT prompt. After this, the app update has been approved.