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

Commit 099cc6b

Browse files
authored
Merge pull request #2 from Danziger/feature/missing-init-options
Adds missing options to the InitOptions interface.
2 parents e1520c7 + 75a5de1 commit 099cc6b

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)