i found a solution , in the webapi controller i needed to deserialize it like this to get rid of that character
string token = JsonConvert.DeserializeObject<string>(model.RECEIVER_TOKEN);
and it worked.
Thanks
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Good Day
i have a webapi with a function defined like this
[HttpPost]
[ActionName("MyPush")]
public void MyPush([FromBody] PUSH_MESSAGE model)
{
one of the field is a token , which comes in this format , with some escape characters
and it does not work when passed to Firebase and if i just assign the string directly that looks like this
the string above works
i found a solution , in the webapi controller i needed to deserialize it like this to get rid of that character
string token = JsonConvert.DeserializeObject<string>(model.RECEIVER_TOKEN);
and it worked.
Thanks