Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification Related Implementation Removed #2089

Merged
merged 10 commits into from
Nov 17, 2023
51 changes: 27 additions & 24 deletions test/helpers/setup_firebase_mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,30 +156,33 @@ class MockFirebaseMessaging extends Mock
);
}

@override
Future<NotificationSettings> requestPermission({
bool? alert = true,
bool? announcement = false,
bool? badge = true,
bool? carPlay = false,
bool? criticalAlert = false,
bool? provisional = false,
bool? sound = true,
}) {
return super.noSuchMethod(
Invocation.method(#requestPermission, [], {
#alert: alert,
#announcement: announcement,
#badge: badge,
#carPlay: carPlay,
#criticalAlert: criticalAlert,
#provisional: provisional,
#sound: sound,
}),
returnValue: neverEndingFuture<NotificationSettings>(),
returnValueForMissingStub: neverEndingFuture<NotificationSettings>(),
);
}
// Comment out the notification logic for the MVP
// TODO: Re-enable notifications when needed for the final release.

// @override
// Future<NotificationSettings> requestPermission({
// bool? alert = true,
// bool? announcement = false,
// bool? badge = true,
// bool? carPlay = false,
// bool? criticalAlert = false,
// bool? provisional = false,
// bool? sound = true,
// }) {
// return super.noSuchMethod(
// Invocation.method(#requestPermission, [], {
// #alert: alert,
// #announcement: announcement,
// #badge: badge,
// #carPlay: carPlay,
// #criticalAlert: criticalAlert,
// #provisional: provisional,
// #sound: sound,
// }),
// returnValue: neverEndingFuture<NotificationSettings>(),
// returnValueForMissingStub: neverEndingFuture<NotificationSettings>(),
// );
// }

@override
Future<void> subscribeToTopic(String? topic) {
Expand Down
Loading