File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
packages/messaging/src/helpers Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ import { MessagingService } from '../messaging-service';
31
31
import { Stub } from '../testing/sinon-types' ;
32
32
import { getFakeMessagingService } from '../testing/fakes/messaging-service' ;
33
33
34
- const FIRELOG_ENDPOINT = LogModule . _mergeStrings (
35
- 'hts/frbslgigp.ogepscmv/ieo/eaylg' ,
36
- 'tp:/ieaeogn-agolai.o/1frlglgc/o'
37
- ) ;
34
+ const LOG_ENDPOINT = "https://play.google.com/log?format=json_proto3" ;
38
35
39
36
const FCM_TRANSPORT_KEY = LogModule . _mergeStrings (
40
37
'AzSCbw63g1R0nCw85jG8' ,
@@ -68,7 +65,7 @@ describe('logToFirelog', () => {
68
65
69
66
// assert
70
67
expect ( fetchStub ) . to . be . calledOnceWith (
71
- FIRELOG_ENDPOINT . concat ( '? key=' , FCM_TRANSPORT_KEY ) ,
68
+ LOG_ENDPOINT . concat ( '& key=' , FCM_TRANSPORT_KEY ) ,
72
69
{
73
70
method : 'POST' ,
74
71
body : JSON . stringify ( LogModule . _createLogRequest ( [ getFakeLogEvent ( ) ] ) )
Original file line number Diff line number Diff line change @@ -36,10 +36,7 @@ import {
36
36
import { MessagePayloadInternal } from '../interfaces/internal-message-payload' ;
37
37
import { MessagingService } from '../messaging-service' ;
38
38
39
- const FIRELOG_ENDPOINT = _mergeStrings (
40
- 'hts/frbslgigp.ogepscmv/ieo/eaylg' ,
41
- 'tp:/ieaeogn-agolai.o/1frlglgc/o'
42
- ) ;
39
+ const LOG_ENDPOINT = "https://play.google.com/log?format=json_proto3" ;
43
40
44
41
const FCM_TRANSPORT_KEY = _mergeStrings (
45
42
'AzSCbw63g1R0nCw85jG8' ,
@@ -97,7 +94,7 @@ export async function _dispatchLogEvents(
97
94
do {
98
95
try {
99
96
response = await fetch (
100
- FIRELOG_ENDPOINT . concat ( '? key=' , FCM_TRANSPORT_KEY ) ,
97
+ LOG_ENDPOINT . concat ( '& key=' , FCM_TRANSPORT_KEY ) ,
101
98
{
102
99
method : 'POST' ,
103
100
body : JSON . stringify ( logRequest )
@@ -216,7 +213,9 @@ function createAndEnqueueLogEvent(
216
213
217
214
/* eslint-disable camelcase */
218
215
logEvent . event_time_ms = Math . floor ( Date . now ( ) ) . toString ( ) ;
219
- logEvent . source_extension_json_proto3 = JSON . stringify ( fcmEvent ) ;
216
+ logEvent . source_extension_json_proto3 = JSON . stringify ( {
217
+ messaging_client_event : fcmEvent
218
+ } ) ;
220
219
221
220
if ( ! ! productId ) {
222
221
logEvent . compliance_data = buildComplianceData ( productId ) ;
You can’t perform that action at this time.
0 commit comments