В Zloy Notify появился раздел «Уведомления игрокам». В нём видны виды уведомлений игры: свои из zloy_wasm.json и «Новый друг», который шлёт платформа. Там же каналы с числами за 7 дней: бот игры в Telegram и MAX, браузер, портал, Android. Кнопка «Проверить на себе» отправляет уведомление только вам и показывает, куда оно дошло.
Там же — «Когда спрашивать разрешение на уведомления». По умолчанию игра спрашивает сама, в подходящий момент: zloy.notify.request({text}) сначала показывает вопрос вашими словами, а системное окно — только после «Да». Можно выбрать «Платформа спрашивает при входе» со своим текстом.
Вкладка «Сервер»: «Загрузить» теперь отправляет на платформу и виды уведомлений из zloy_wasm.json (notify_kinds). Без них сервер игры не может слать уведомления этих видов.
Android: новый шаг «Push-уведомления». Для RuStore — RuStore Push без Google, для Google Play, Galaxy Store и Xiaomi — FCM. Ключи для сервера уходят на zloy.net, а ID проекта и google-services.json вшиваются в пакет при «Собрать». Без ключей пакет собирается без push.
Android-пакет больше не спрашивает разрешение на уведомления при запуске и входе. Он спрашивает, только когда игра зовёт zloy.notify.request или если в Zloy Notify выбран вопрос при входе. Ещё пакет научился «поделиться» текстом и ссылкой — так работает приглашение друзей zloy.invite. Изменения в пакете доезжают до игроков с новой сборкой.
Zloy Doctor: необязательный пункт «Firebase CLI» с подсказкой, как завести проект Firebase для push в Google Play.
Заготовка своего сервера игры: в библиотеке zloy-server появились Invites (сколько друзей пришло по приглашению) и Notify (отправить, отложить, снять уведомление), и скилл агента знает, как ими пользоваться.
Zloy Studio 1.87.0
Zloy Notify has a new “Player notifications” section. It shows the game's notification kinds: its own from zloy_wasm.json and “New friend”, which the platform sends. It also shows the channels with 7-day numbers: the game bot in Telegram and MAX, the browser, the portal and Android. “Test on me” sends a notification to you only and shows where it arrived.
The same section has “When to ask for notification permission”. By default the game asks itself, at a fitting moment: zloy.notify.request({text}) first shows a question in your words, and the system prompt comes only after “Yes”. You can choose “The platform asks on entry” with your own text instead.
Server tab: “Upload” now also sends the notification kinds from zloy_wasm.json (notify_kinds) to the platform. Without them, the game server cannot send notifications of those kinds.
Android: a new “Push notifications” step. RuStore builds use RuStore Push without Google; Google Play, Galaxy Store and Xiaomi builds use FCM. Server keys go to zloy.net, while the project ID and google-services.json are built into the package on “Build”. Without keys the package builds without push.
The Android package no longer asks for notification permission on launch or sign-in. It asks only when the game calls zloy.notify.request, or if asking on entry is chosen in Zloy Notify. The package can also share text and a link, which is how the zloy.invite friend invite works. Package changes reach players with a new build.
Zloy Doctor: an optional “Firebase CLI” item with a hint on setting up a Firebase project for Google Play push.
Own game server template: the zloy-server library now has Invites (how many friends came by invitation) and Notify (send, schedule or cancel a notification), and the agent skill knows how to use them.
Сайт использует cookie, Яндекс.Метрику с Вебвизором и собственный обезличенный счётчик посещений: cookie нужны, чтобы работали вход и настройки, а Метрика и счётчик — чтобы понимать, как пользуются сайтом.
Политика конфиденциальности
Комментарии 0
Пока нет комментариев.
Войдите, чтобы комментировать. Войти