Base solution for your next web application
Open Closed

Notification shown twice for a single Push. #5105


User avatar
0
velu created

Hi,

We are using .netcore1.* angular 4(Combined)

When we send the notification to the user, User receives two notification for the single push.

Please help me to solve this issue.

Thanks


9 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Do you have two records on the database or a single record for the related notification ?

  • User Avatar
    0
    velu created

    Hi,

    We are using the following code to send notification.

    using (_unitOfWorkManager.Current.SetTenantId(null))
                {
                    await _notificationPublisher.PublishAsync(
                   notificationName,
                   new MessageNotificationData(message),
                   severity: NotificationSeverity.Info,
                   tenantIds: new[] { user.TenantId }
                   );
                   await _unitOfWorkManager.Current.SaveChangesAsync();
                }
    

    is there any problem with this code.

    Thanks

  • User Avatar
    0
    velu created

    Hi,

    We found that two records for the single push in the abptenantnotifications table.

    How can we solve this?

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @velu could you share a screenshot of the data in AbpTenantNotifications table ?

  • User Avatar
    0
    velu created

    HI,

    Please check data from tenant notification.

    <a class="postlink" href="https://drive.google.com/open?id=1latLCFfxLExffvRxdJlKdKiMp8cgivEl">https://drive.google.com/open?id=1latLC ... iMp8cgivEl</a>

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    @velu could you share your project via email ?

  • User Avatar
    0
    velu created

    Hi,

    Any bug found in this.

    Please help us to solve this issue.

    Thanks

  • User Avatar
    0
    alper created
    Support Team

    hi

    couldn't find your email, sorry. what was the topic of your email?

  • User Avatar
    0
    velu created

    Hi,

    Email subject: NOTIFICATION SHOWN TWICE FOR A SINGLE PUSH (SOLUTION)

    From Email <a href="mailto:[email protected]">[email protected]</a>

    Thanks.