Make the app react to test push

This commit is contained in:
Benoit Marty 2020-10-02 16:13:14 +02:00 committed by Benoit Marty
parent e926326fca
commit d1fb1614a3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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