Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.42 KB

File metadata and controls

33 lines (23 loc) · 1.42 KB
title
Verify Push Notifications

import useBaseUrl from '@docusaurus/useBaseUrl';

Below, we'll walk you through how you can validate the functionality of push notifications within your Lexicon-powered mobile app.

:::info In order to properly test push notifications, you will need two separate accounts on your Discourse site (to generate notifications).

Additionally, you will need at least one mobile device for testing purposes. :::

Step

To test push notifications within your Lexicon-powered mobile app, follow these steps:

  1. Ensure that you have completed the Getting Started steps for Lexicon.
  2. Start the Lexicon Expo app by navigating to frontend/ and running yarn start from your terminal.
  3. Using the Expo link or QR Code, launch the app on a real mobile device.
  4. Login to the app using one of your accounts.
  5. Using that account, create a post within your Discourse site
  6. Using a separate account, reply to the post to trigger a notification for the first account.
  7. You should receive a push notification on your phone with the reply content from the other account.

<img src={useBaseUrl('/img/screenshot/Mobile-PushNotification.png')} width="360" />

And that's it! The Lexicon Discourse plugin is properly sending push notifications through your Discourse site.