using GameClients; var gameClient = new GameClient(); gameClient.SendNotification( new PushNotification { Message = "Your new score is 10!", Title = "Game Update", Data = new NotificationData { Score = 10 } }, "playerToken" );
using GameClients; var gameClient = new GameClient(); gameClient.SendNotification( new InAppNotification { Message = "You've earned a new achievement!", Type = "AchievementUnlocked", Data = new NotificationData { AchievementName = "Big Spender" } }, "playerId" );In this example, an in-app notification is sent to a player with the ID "playerId". The notification contains a message, a type (which can be used to customize the display of the notification), and some custom data (in this case, the name of the achievement that was unlocked). Based on the code examples, it is likely that the package library used is called "GameClients".