Приглашения друзей и уведомления в играх
Игры на zloy.net теперь умеют звать друзей и напоминать о себе.
- Приглашение по личной ссылке. Игрок отправляет другу ссылку с картинкой из игры: в Telegram и MAX — на бота игры, на сайте и в Android — на страницу игры. Пришедший по ней в Telegram и MAX сразу становится другом, на сайте ему приходит заявка в друзья. Засчитывает платформа: только нового игрока, и только одному пригласившему, поэтому награду за друзей игра выдаёт честно.
- Уведомления игрокам. Игра сообщает о том, что важно игроку, — например, что на его участок пришли соседи. Сообщение приходит туда, где игрок есть: бот игры в Telegram и MAX, браузер, приложение на телефоне. Какие уведомления получать, игрок выбирает сам — в настройках игры или командой /settings у бота.
- Разрешение спрашивает игра, в подходящий момент. Не при входе, а когда это понятно, зачем: сначала вопрос словами игры, системное окно браузера или телефона — только после «Да». В браузере разрешение даётся этой игре, а не всему zloy.net.
- Разработчикам: службы invites и notify для сервера игры, методы zloy.invite и zloy.notify.request в SDK, экран «Уведомления игрокам» в Zloy Notify Студии. Подробности — в документации.
Friend invites and game notifications
Games on zloy.net can now invite friends and remind players about themselves.
- Invites by a personal link. A player sends a friend a link with a picture from the game: in Telegram and MAX it leads to the game's bot, on the website and on Android to the game page. Whoever comes through it in Telegram or MAX becomes a friend right away; on the website they get a friend request. The platform does the counting: only a new player, and only for one inviter, so a game can reward invites fairly.
- Notifications to players. A game tells players what matters to them, for example that neighbours have come to their plot. The message arrives wherever the player is: the game's bot in Telegram and MAX, the browser, the phone app. Players choose which notifications to get themselves, in the game settings or with /settings in the bot.
- The game asks for permission at the right moment. Not on entry, but when the reason is clear: first a question in the game's own words, and the browser or phone system prompt only after "Yes". In the browser, permission is given to this game, not to all of zloy.net.
- For developers: the invites and notify services for the game server, zloy.invite and zloy.notify.request in the SDK, and the "Player notifications" screen in Zloy Notify in the Studio. Details are in the documentation.
Комментарии 0
Пока нет комментариев.
Войдите, чтобы комментировать. Войти