Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 75a5de1

Browse files
author
Daniel Gámez Franco
committed
Adds missing options to the InitOptions interface.
1 parent e1520c7 commit 75a5de1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/firebase.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ export interface InitOptions {
117117
*/
118118
onMessageReceivedCallback?: (data: Message) => void;
119119

120+
/**
121+
* For FCM. Whether you want this plugin to automatically display the notifications or just notify the callback.
122+
*/
123+
displayNotifications: boolean;
124+
125+
/**
126+
* For FCM. Whether you want this plugin to always handle the notifications when the app is in foreground.
127+
*/
128+
showWhenInForeground: boolean;
129+
120130
/**
121131
* Get notified when a dynamic link was used to launch the app. Alternatively use addOnDynamicLinkReceivedCallback.
122132
* TODO iOS seems to return an object; not a string

0 commit comments

Comments
 (0)