[grpc] custom key on the payload does not work
custom key and value on the payload does not work
and how to use "mutable-content"?
....
request.setTokensList(["1234567890"]);
request.setBadge(1);
request.setSound("default")
alert.setTitle("111");
alert.setBody("123");
request.setKey({"abc":"123","bcd":"234","sdf":54,"toy":true});
request.setAlert(alert);
client.send(request, function (err, response) {....
{
"aps":{
"alert":{
"title":"111",
"body":"123"
},
"badge":1,
"sound":"default",
"APIKey":{
"abc":"123",
"bcd":"234",
"sdf":54,
"toy":true
}
}
}
ios side not receive "APIKey"
"aps":{
"alert":{
"title":"111",
"body":"123"
},
"badge":1,
"sound":"default",
}
}
@appleboy
@xnathanh Try:
request.setMutablecontent(false);
@appleboy Mutablecontent is working but still can not get custom "key" request.setKey({"abc":"123","bcd":"234","sdf":54,"toy":true});
setKey is for set Android API key, not ios custom data. I will take it.
Was this ever fixed? @appleboy
@appleboy so how to send custom key-value arguments in push notification using gRPC?
@belek @jpeterson88 @xnathanh Custom data has been implemented in https://github.com/appleboy/gorush/pull/412