Mobile app push notification

General Discussion

Suggested Topics


  • 0 Votes
    5 Posts
    663 Views

    This problem has been troubled for a long time, thank you very much to solve it!😊

  • 0 Votes
    3 Posts
    910 Views

    @baris 👍

  • 0 Votes
    4 Posts
    1k Views

    Pushed this change to this forum, the notification will go away if you scroll down or after 10 seconds, and it only shows up if the topic has more than 10 posts.

  • Icons in the notification

    General Discussion
    1
    0 Votes
    1 Posts
    11k Views

    I decided to add icons in the notification (fortawesome).

    function(_followers, next) { followers = _followers; if (!followers.length) { return callback(); } title = postData.topic.title; if (title) { title = S(title).decodeHTMLEntities().s; } notifications.create({ bodyShort: '[[<i class="fa fa-share"></i>, notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]', bodyLong: postData.content, pid: postData.pid, nid: 'tid:' + postData.topic.tid + ':pid:' + postData.pid + ':uid:' + exceptUid, tid: postData.topic.tid, from: exceptUid }, function(err, notification) { if (err) { return next(err); } if (notification) { notifications.push(notification, followers); } next(); }); },

    <i class="fa fa-share"></i> - this icon.
    The problem is that it appears as -

    &lt;i class="fa fa-share"&gt;&lt;/i&gt;
    < > Are displayed in the form of html code.

  • 0 Votes
    1 Posts
    623 Views

    is it possible to broadcast a message / notification to all users?

    thanks!