# Release v1.58.0 - Push notifications

**URL:** <https://forum.wolfery.com/t/release-v1-58-0-push-notifications/2533>\
**Category:** Releases\
**Created:** [May 18, 2024, 9:37am UTC](https://forum.wolfery.com/t/release-v1-58-0-push-notifications/2533 "2024-05-18T09:37:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Accipiter](https://forum.wolfery.com/user_avatar/forum.wolfery.com/accipiter/32/5_2.png) [@Accipiter](https://forum.wolfery.com/u/Accipiter)\
**Post date:** [May 18, 2024, 9:37am UTC](https://forum.wolfery.com/t/release-v1-58-0-push-notifications/2533/1 "2024-05-18T09:37:03Z")

</div>

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](https://forum.wolfery.com/uploads/default/original/2X/6/69abbf7fceda08e5eac50fa5fbc66a42ebbf37ed.png)

![image](https://forum.wolfery.com/uploads/default/original/2X/8/86b0ef9b42e533a8201f779eb6f469e8421aa214.png)

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](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](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](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](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](https://forum.wolfery.com/t/release-v1-57-0-looking-for-roleplay/2455) 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](https://forum.wolfery.com/t/1-57-0-removed-essential-feature/2456). 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](https://forum.wolfery.com/uploads/default/original/2X/8/84caa4b5ecf30843081354591b8adf0bef1a6efd.png)

Thanks to @Kredden for implementing it in [this PR](https://github.com/mucklet/mucklet-client/pull/260)!  
(I took the freedom to make some slight restyling changes though.)  
[GitHub issue #266 - Toggle to hide unwatched characters](https://github.com/mucklet/mucklet-client/issues/266)

# 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:

```plaintext
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:

```plaintext
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.
