Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom data gets deleted in final fcm payload #236

Open
SavvyEngineer opened this issue Jun 27, 2021 · 1 comment
Open

Custom data gets deleted in final fcm payload #236

SavvyEngineer opened this issue Jun 27, 2021 · 1 comment

Comments

@SavvyEngineer
Copy link

hi Im sending this

{
    "device": "fcm",
    "token": "dW_4sHefRsaPKZoOxwRkYX:APA91bGpQmGOyRzBVL-N2hM50EK3xxIet-MAY0qKkE2aklhEzcnUdFeNVoUKEqrcsAP9tSCUeoijW9CSywbxo4Nv5E7bkE7O0S_SaNQLdNSd4NoEyarZKOvQATwvlbCncIZfBI4C9W4Z",
    "alert":{
        "title": "Test",
        "body": "test hc"
    },
    "custom":{
        "tag": "Test"
    }
}

but in server log

[I 210627 19:48:10 push:111] sending notification to fcm: dW_4sHefRsaPKZoOxwRkYX:APA91bGpQmGOyRzBVL-N2hM50EK3xxIet-MAY0qKkE2aklhEzcnUdFeNVoUKEqrcsAP9tSCUeoijW9CSywbxo4Nv5E7bkE7O0S_SaNQLdNSd4NoEyarZKOvQATwvlbCncIZfBI4C9W4Z
[I 210627 19:48:10 fcm:99] {"message": {"token": "dW_4sHefRsaPKZoOxwRkYX:APA91bGpQmGOyRzBVL-N2hM50EK3xxIet-MAY0qKkE2aklhEzcnUdFeNVoUKEqrcsAP9tSCUeoijW9CSywbxo4Nv5E7bkE7O0S_SaNQLdNSd4NoEyarZKOvQATwvlbCncIZfBI4C9W4Z", "notification": {"title": "Test", "body": "test hc"}}}
[I 210627 19:48:10 fcm:102] access token expiring in 0:54:54...
[I 210627 19:48:16 web:2242] 202 POST /api/v2/push (178.173.153.101) 5486.55ms
[I 210627 19:48:16 __init__:217] PushHandler call ends 5.48636531829834

as you can see there is no custom data please help

@yaro08
Copy link

yaro08 commented Dec 21, 2021

I think you should change "custom" by "extra" key names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants