Server: FCM HTTP v1 target in fid instead of deprecated token (D-083 follow-up)
The stored fcm_token is the Firebase Installation ID; HTTP v1 deprecates message.token (accepted only during the transition) in favour of message.fid. Push examples and push_fcm tests follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"message": {
|
||||
"token": "dGhpcyBpcyBhbiBleGFtcGxlIGZjbSB0b2tlbg",
|
||||
"fid": "dExampleFid0Kvitt12345",
|
||||
"android": {
|
||||
"priority": "high",
|
||||
"ttl": "86400s"
|
||||
|
||||
Reference in New Issue
Block a user