From d1fb1614a3c523fc226a5896be7e936a06d2b330 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 2 Oct 2020 16:13:14 +0200 Subject: [PATCH] Make the app react to test push --- tools/tests/test_push.sh | 2 +- tools/tests/test_push_unsafe.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tests/test_push.sh b/tools/tests/test_push.sh index 0da02e2d0a..08348497ae 100755 --- a/tools/tests/test_push.sh +++ b/tools/tests/test_push.sh @@ -25,7 +25,7 @@ curl -H "Authorization: key=$SERVER_KEY" \ read -p "Enter the FCM token: " FCM_TOKEN # content of the notification -DATA="{\"message\":\"Message of PUSH!\"}" +DATA='{"event_id":"$THIS_IS_A_FAKE_EVENT_ID"}' echo echo diff --git a/tools/tests/test_push_unsafe.sh b/tools/tests/test_push_unsafe.sh index 62ec3759f4..77c198197f 100755 --- a/tools/tests/test_push_unsafe.sh +++ b/tools/tests/test_push_unsafe.sh @@ -32,7 +32,7 @@ curl -H "Authorization: key=$SERVER_KEY" \ # {"multicast_id":5978845027639121780,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]} # content of the notification -DATA="{\"message\":\"Message of PUSH!\"}" +DATA='{"event_id":"$THIS_IS_A_FAKE_EVENT_ID"}' echo echo