-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a logging service with flag`setDeliveryMetricsExportedToBigQue…
…ryEnabled` to enable/disable (#5139)
- Loading branch information
Showing
27 changed files
with
909 additions
and
124 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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.