step to reproduce, just as the sample code, instead to report error other than ignore
1. on app init event, register AppLifecycleReactor
```dart
// just as the sample code
@override
void initState() {
super.initState();
AppOpenAdManager appOpenAdManager = AppOpenAdManager()..loadAd();
_appLifecycleReactor =
AppLifecycleReactor(appOpenAdManager: appOpenAdManager);
_appLifecycleReactor.listenToAppStateChanges();
}
```
2. on AppLifecycleReactor foreground event, call showAdIfAvailable()
```dart
// just as the sample code
void listenToAppStateChanges() {
AppStateEventNotifier.startListening();
AppStateEventNotifier.appStateStream
.forEach((state) => _onAppStateChanged(state));
}
void _onAppStateChanged(AppState appState) {
print('New AppState state: $appState');
if (appState == AppState.foreground) {
appOpenAdManager.showAdIfAvailable();
}
}
```
3. report error using crashlytics
```dart
// just as the sample code
onAdFailedToShowFullScreenContent: (ad, error) {
debugPrint('$ad onAdFailedToShowFullScreenContent: $error');
_isShowingAd = false;
ad.dispose();
_appOpenAd = null;
// instead report error
FirebaseCrashlytics.instance.recordError(
error,
stackTrace,
information: ['$ad'],
);
},
```