-
Notifications
You must be signed in to change notification settings - Fork 948
Create a logging service with flagsetDeliveryMetricsExportedToBigQueryEnabled
to enable/disable
#5139
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
Merged
Merged
Create a logging service with flagsetDeliveryMetricsExportedToBigQueryEnabled
to enable/disable
#5139
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c6a2749
Allows retrieval of `messageId` from `MessagePayload`
zwu52 1789c19
Create logging service
zwu52 82034cd
Update changeset
zwu52 5fceaaf
Polish PR based on 1st round of review
zwu52 3d041f6
Update packages-exp/messaging-exp/src/helpers/logToFirelog.test.ts
zwu52 d21f7e2
Don't retry if non-retriable
zwu52 a8d0e59
Merge branch 'master' into js-fcm-firelog
zwu52 7cf9faf
Merge branch 'js-fcm-firelog' of https://github.com/firebase/firebase…
zwu52 af78e92
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
zwu52 c0a174c
Update settings.json
zwu52 ef63a92
Update settings.json
zwu52 8cefbfc
Update settings.json
zwu52 429b0da
Update api.ts
zwu52 79a8e10
Update index.sw.ts
zwu52 dbd8a8a
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
zwu52 d073551
Update Type
zwu52 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@firebase/messaging': minor | ||
'firebase': minor | ||
--- | ||
|
||
Allows retrieval of `messageId` from `MessagePayload`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
}, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"files.associations": { "*.json": "jsonc" } | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,69 @@ | ||
## API Report File for "@firebase/messaging-exp" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
|
||
```ts | ||
|
||
import { FirebaseApp } from '@firebase/app-exp'; | ||
import { NextFn } from '@firebase/util'; | ||
import { Observer } from '@firebase/util'; | ||
import { Unsubscribe } from '@firebase/util'; | ||
|
||
// @public | ||
export function deleteToken(messaging: Messaging): Promise<boolean>; | ||
|
||
// @public | ||
export interface FcmOptions { | ||
analyticsLabel?: string; | ||
link?: string; | ||
} | ||
|
||
// @public | ||
export function getMessaging(app?: FirebaseApp): Messaging; | ||
|
||
// @public | ||
export function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>; | ||
|
||
// @public | ||
export interface GetTokenOptions { | ||
serviceWorkerRegistration?: ServiceWorkerRegistration; | ||
vapidKey?: string; | ||
} | ||
|
||
// @public | ||
export function isSupported(): Promise<boolean>; | ||
|
||
// @public | ||
export interface MessagePayload { | ||
collapseKey: string; | ||
data?: { | ||
[key: string]: string; | ||
}; | ||
fcmOptions?: FcmOptions; | ||
from: string; | ||
notification?: NotificationPayload; | ||
} | ||
|
||
// @public | ||
export interface Messaging { | ||
} | ||
|
||
export { NextFn } | ||
|
||
// @public | ||
export interface NotificationPayload { | ||
body?: string; | ||
image?: string; | ||
title?: string; | ||
} | ||
|
||
export { Observer } | ||
|
||
// @public | ||
export function onMessage(messaging: Messaging, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe; | ||
|
||
export { Unsubscribe } | ||
|
||
|
||
``` | ||
## API Report File for "@firebase/messaging-exp" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
|
||
```ts | ||
|
||
import { FirebaseApp } from '@firebase/app-exp'; | ||
import { NextFn } from '@firebase/util'; | ||
import { Observer } from '@firebase/util'; | ||
import { Unsubscribe } from '@firebase/util'; | ||
|
||
// @public | ||
export function deleteToken(messaging: Messaging): Promise<boolean>; | ||
|
||
// @public | ||
export interface FcmOptions { | ||
analyticsLabel?: string; | ||
link?: string; | ||
} | ||
|
||
// @public | ||
export function getMessaging(app?: FirebaseApp): Messaging; | ||
|
||
// @public | ||
export function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>; | ||
|
||
// @public | ||
export interface GetTokenOptions { | ||
serviceWorkerRegistration?: ServiceWorkerRegistration; | ||
vapidKey?: string; | ||
} | ||
|
||
// @public | ||
export function isSupported(): Promise<boolean>; | ||
|
||
// @public | ||
export interface MessagePayload { | ||
collapseKey: string; | ||
data?: { | ||
[key: string]: string; | ||
}; | ||
fcmOptions?: FcmOptions; | ||
from: string; | ||
messageId: string; | ||
notification?: NotificationPayload; | ||
} | ||
|
||
// @public | ||
export interface Messaging { | ||
} | ||
|
||
export { NextFn } | ||
|
||
// @public | ||
export interface NotificationPayload { | ||
body?: string; | ||
image?: string; | ||
title?: string; | ||
} | ||
|
||
export { Observer } | ||
|
||
// @public | ||
export function onMessage(messaging: Messaging, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe; | ||
|
||
export { Unsubscribe } | ||
|
||
|
||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages-exp/messaging-exp/src/api/setDeliveryMetricsExportedToBigQueryEnabled.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @license | ||
* Copyright 2020 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import { Messaging } from '../interfaces/public-types'; | ||
import { MessagingService } from '../messaging-service'; | ||
|
||
export function _setDeliveryMetricsExportedToBigQueryEnabled( | ||
messaging: Messaging, | ||
enable: boolean | ||
): void { | ||
(messaging as MessagingService).deliveryMetricsExportedToBigQueryEnabled = | ||
enable; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.