Hi, experiencing issues with templateregistrations and sends after following the migration steps.
Does anyone know if the fix has been rolled out for north europe?
Previously used templateregistrations (not installation) so I want to keep doing that.
I have checked the structure of the template and it should be correct.
The docs for templateregistration with the new v1 is not updated at all.
Here is an example that fails:
var messageTemplate = JsonConvert.SerializeObject(new
{
message = new{
notification = new{
title = "ExorLive",
body = "$(message)"
},
data = new{
appdestination = "$(action)"
}
}
});
registration = await _hub.CreateFcmV1TemplateRegistrationAsync(deviceRegistration.Handle,messageTemplate);
registration.Tags = new HashSet<string>(deviceRegistration.Tags);
Test send:
var payload = new Dictionary<string, string>
{
{ "message", "Test" },
{ "action", "messages" }
};
var outcome = await _hub.SendTemplateNotificationAsync(payload, "userId_12345");
Would be really helpful if anyone would share a working solution for using the CreateFcmV1TemplateRegistrationAsync.