#apex #oracleapex #ords
Push Notifications || Oracle APEX 23.1 New Feature
What is PWA?
Progressive Web Apps (PWAs) are web applications that utilize modern web technologies to deliver an app-like experience to users. PWAs are installable, work offline, and have other features that enhance user experience, such as push notifications.
What are Push Notifications?
Push notifications are messages sent to users even when the app is not open or active. These notifications help increase user engagement and provide timely updates.
Now let's create app!
On APEX page designer click on create and select new application.
Make sure to check Install Progressive Web App and Push Notifications
That will create a new app and the first thing to notice is the settings menu item on the navigation bar
When we click that a drawer modal dialog page opens with the following option
Push notifications need to be enabled by each user. It works like that to respect user privacy and preferences. By explicitly enabling push notifications, users grant the application permission to send them notifications. This ensures that users have control over the information they receive and can opt-out if they feel overwhelmed or uninterested.
Create a page process to send the notification. I am going to send this notification to a user called DEMO.
Create a Button to submit the page and call the process we just created.
The application is ready to send notifications. We only need to install it on the phone. To do so, open the application on your preferred browser (refer to the browser compatibility list below) and click on the Install app link in the navigation bar after logging in. (Make sure you log in with the same user from the application process) Follow the instructions provided to complete the installation process.
Now let's enable push notifications for the logged user.
If we click the button that we created in Step 4, it will initiate the page process and send the notification. Although it may take a few seconds to arrive, it works perfectly. I have tested on both Android and iOS.
We can also send the notifications using a new apex_pwa API.
Unistall ORDS
• How to Uninstall ORDS 22.4 || Remove ORDS
How to start ORDS CMD/Batch File
• How to Start ORDS 22.4 Services|| Using CM...