Skip to content

Commit 152956b

Browse files
authored
Merge pull request #33 from iMattPro/fixes
Readme info
2 parents d2c0b11 + 62f2f42 commit 152956b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@ To run this extension from the repo (and not from a pre-built package) on a loca
3131
php bin/phpbbcli.php extension:enable phpbb/webpushnotifications # install the extension
3232
```
3333

34+
## Testing Push Notifications
35+
36+
Testing push notifications necessitates user-to-user interactions to observe the notification behavior accurately. Follow the steps outlined below to effectively test push notifications:
37+
38+
1. **User Account Setup:**
39+
- Create at least two distinct user accounts for testing purposes.
40+
- In each user account's notifications preferences, assign web push notifications and subscribe to them to receive Push Notifications.
41+
42+
2. **Message, Quote, or Reply Interaction:**
43+
- Initiate a user-to-user interaction by performing one of the following actions using "User Account 1":
44+
- **Private Message:** Send a direct message from "User Account 1" to "User Account 2".
45+
- **Quote:** Quote a post or message authored by "User Account 2" using "User Account 1".
46+
- **Reply:** Respond to a post or message authored by "User Account 2" using "User Account 1".
47+
48+
3. **Observing Push Notifications:**
49+
- Once the interaction is performed from "User Account 1" to engage with "User Account 2," you promptly should see a notification for "User Account 2."
50+
51+
4. **Caveats for Local Testing**
52+
- Local testing of Push Notifications only works from a `localhost` address or if your local server has a secure SSL certificate.
53+
- We have seen success on Windows using manually installed PHP, Apache and MySQL. However, for reasons not yet known we do not see success on Mac using MAMP.
54+
3455
## License
3556

3657
[GNU General Public License v2](license.txt)

0 commit comments

Comments
 (0)