Skip to main content

Announcements

Prerequisites

note

Before integrating the announcement module, please contact Player Network Assistant.

  1. Integrate the Player Network SDK

    Games should design their own announcement resources and obtain the configured announcements in the Player Network console.Since announcements are sent to the client as code, they are parsed by front-end developers.Therefore, game developers and operational teams are responsible for deciding how to parse and display these announcements.

  2. Configure announcement resources and publishing processes in the Player Network Console.

Process announcement callbacks

Developers can register the following callback functions to receive announcements about announcement events, making it easier to handle announcement data requests.

APIFunction
AddNoticeResultObserverRegister the NoticeResult callback.Used for processing RequestNoticeData interface callbacks.
RemoveNoticeResultObserverRemove the NoticeResult callback.

Retrieve announcement information

Call the RequestNoticeData interface and pass the following parameters to obtain announcement information configured in the Player Network Console, then display the announcement in the game:

  • Integer representing ISO 3166-1 country/region code, with 0 representing all regions
  • A string representing the language code for announcement content according to RFC 4646 Language Code
  • Optional parameters for filtering announcement content
string seqid = INTLAPI.RequestNoticeData("0", "zh-Hans", extraJson);

If you encounter issues during integration, see FAQs.