Skip to content

Working with Announcements

Post Announcement

Announcement is a special type of posts in Activity Feed that can be posted only from the dashboard by a developer. Announcements are shown only during the period they are posted for.

To post an announcement:

  1. Login to GetSocial Dashboard.

  2. Go to “Activity Feeds” section.

  3. Switch to “Announcements” tab.
    GetSocial Dashboard - Announcements

  4. Press “New announcement” button.

  5. Fullfill you announcement content, set an time interval when it should be available on SDK and press “Post”.
    GetSocial Dashboard - Post Announcement

You can also change a feed or post an announcement to all existing feeds.

Note

It is possible to post announcements only from the GetSocial Dashboard.

List Announcements

If you want to get a list of announcements that are active now, do next:

1
2
3
4
5
6
7
GetSocial.GetGlobalFeedAnnouncements (
    announcements => {
        Debug.Log("Succesfully retrieved a list of announcements!");
    }, 
    error => {
        Debug.LogWarning("Failed to get a list of announcements, error: " + error.Message);
    });

Custom Feed Announcements

To get a list of announcements for custom feed, simply pass a feed name to GetAnnouncements method:

1
2
3
4
5
6
7
8
string feedName = "level-42";
GetSocial.GetAnnouncements(feedName, 
    announcements => {
        Debug.Log("Succesfully retrieved a list of announcements!");
    }, 
    error => {
        Debug.LogWarning("Failed to get a list of announcements, error: " + error.Message);
    });

GetSocial UI

In the GetSocial Activity Feed UI announcements are shown in the list with simple activities but are placed on the top of the feed before other posts, so users see them first.

Next Steps

Give us your feedback! Was this article helpful?

😀 🙁