Results 1 to 2 of 2

Thread: [RESOLVED] Notification Template

Hybrid View

  1. #1

    Thread Starter
    Lively Member FunkySloth's Avatar
    Join Date
    Aug 2016
    Posts
    91

    Resolved [RESOLVED] Notification Template

    Hi,

    can anyone help me how I can translate this format with my current code.

    {
    "aps" : { "alert" : "Message received from Bob" },
    "acme2" : "Message" ]
    }
    Currently I have this code.

    Code:
                string tagExpression = $"{alertMessage.SiteCode}:{alertMessage.AlertTypeId}";
                var headers = new Dictionary<string, string> { { "apns-push-type", "alert" }};
                var tempprop = new Dictionary<string, string> { { "message", inAppMessage}};
    
                var notification = new TemplateNotification(tempprop)
                {
                    Headers = headers
                };
    
                await hub.SendNotificationAsync(notification, tagExpression);
    I need to specify another message on "acme" parameter.

    Thank you

  2. #2

    Re: [RESOLVED] Notification Template

    Have you explored incorporating the "acme" parameter into your current code for message translation, and if so, do you need assistance in implementing it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width