Release v1.58.0 - Push notifications

Had I known the effort required to create this release, I would not have started with this “small” feature to begin with. It has been a deep rabbit hole! But finally it is finished (albeit not thoroughly tested).

Let’s welcome mobile push notifications!

Features

Push Notifications

On desktop, we’ve already had access to system notifications, notifying us about events such as when someone mentions your name, or when a new mail arrived. Now we can have it on mobile devices too. You can find and activate this feature under Player Settings:

image

image

The old notification feature relied on the app running in the background. Unfortunately, with mobile devices, the app stops soon after you switch to another app or turn off the screen. Instead, mobile devices requires something called Push Notifications, and this has now been implemented.

How to activate push notifications on mobile

  1. Open your mobile browser and log in to https://wolfery.com
  2. Install the app to home screen
    • On IOS (Safari) - Click the share menu (box with up-arrow) and select Add to Home Screen
    • On Android (chrome) - Click the ⋮ menu and select Install app
  3. Open the installed Wolfery app.
  4. Under Player Settings ( ⋮ menu and Settings), click Enable notifications:
  5. In the pop-up, agree to allow the app to send notifications.

Notification modes

There are few different modes for notifications to run, when running the app in a browser tab. By default, the auto mode is enabled, but there are a few other options.

Auto
If installed as an app, it uses push mode. Otherwise it uses local mode.
This is the default behavior.

Local
Notifications are handled by the app itself, on events sent through the game API.
Requires the app to run. Poor performance on mobile.
https://wolfery.com/?notify.mode=local

Push
Notifications are pushed to the device.
Does not require the app to run. Works well on mobile.
https://wolfery.com/?notify.mode=push

Legacy
Uses the same behavior as prior to this update. Due to technical reasons related to service workers, the new notifications doesn’t work well when using multiple accounts in the same browser.
Requires the app to run. Does not work on mobile. Will eventually be deprecated by browsers.
https://wolfery.com/?notify.mode=legacy

Notification auto removal

Notifications are closed when clicked on. They will also be removed after a set time duration, to prevent clogging the device’s notification list:

  • mail, requests, reports - removed after 24 hours
  • character log events - removed after 15 minutes
  • wakeup notifications - removed after 15 minutes

Toggle to hide unwatched characters

Release v1.57.0 removed a feature to hide the list of unwatched characters in the Awake list. However, @Windchaser made a good point as to why the feature was still needed in this topic. So, we welcome it back with a slightly new look!

To toggle between hiding and showing unwatched characters, click the separator inbetween the lists:

image

Thanks to @Kredden for implementing it in this PR!
(I took the freedom to make some slight restyling changes though.)
GitHub issue #266 - Toggle to hide unwatched characters

Improvements

Notification restyling

Notifications now has a shorter title, and previous title is now set as the notification body. This is due to Android devices giving very little space to notification titles.

Before

Jane whispered to John

After

Whisper
Jane whispered to John.

Per-device notification settings

Notification setting under Player Settings are now per device/browser and account. Previously, these settings were stored per account with the same settings used for all devices.

Server-stored focused chars

Focus character settings are now stored on the account, synchronized to all devices.
Existing focused character settings will automatically be migrated to the account next time you log in/open Wolfery on that device.

For more info on focusing on characters, see:

help focus

Server-stored mute settings

Mute settings, such as mute char, mute ooc, mute travel, and mute message, are now stored on the account, synchronized to all devices.
Existing mute settings will automatically be migrated to the account next time you log in/open Wolfery on that device.

For a full list of mute commands, see:

help mute

Fixes

Address command not triggering mention
When someone mentions your character in an address otherwise not directed at your character, this did not trigger the mention notification. This has been fixed.
Thanks to @Shinyuu for reporting it!

Access token expiry date not set
The expire timestamp was not properly set on access tokens. This has been fixed.

4 Likes