Skip to content

Commit

Permalink
docs(messaging, android): update inline documentation on behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Jun 12, 2024
1 parent e298cb4 commit 58767ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ class FirebaseMessaging extends FirebasePluginPlatform {
/// This should be used to determine whether specific notification interaction
/// should open the app with a specific purpose (e.g. opening a chat message,
/// specific screen etc).
///
/// on Android, if the message was received in the foreground, and the notification was
/// pressed whilst the app is in a background/terminated state, this will return `null`.
Future<RemoteMessage?> getInitialMessage() {
return _delegate.getInitialMessage();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ abstract class FirebaseMessagingPlatform extends PlatformInterface {
/// This should be used to determine whether specific notification interaction
/// should open the app with a specific purpose (e.g. opening a chat message,
/// specific screen etc).
///
/// on Android, if the message was received in the foreground, and the notification was
/// pressed whilst the app is in a background/terminated state, this will return `null`.
Future<RemoteMessage?> getInitialMessage() {
throw UnimplementedError('getInitialMessage() is not implemented');
}
Expand Down

0 comments on commit 58767ab

Please sign in to comment.