Instructions for launching a personalized link within a Progressive Web App on the latest iOS version 16.4

Exciting news with the latest WebKit version 16.4 - now you can enable Web Push notifications on Apple devices with ease. However, there seems to be a glitch I encountered while trying to navigate to a specific page within my Progressive Web App (PWA) when clicking on the notification in Safari.

Here is a snippet of the code I used in the ServiceWorker:

self.addEventListener('notificationclick', function (event) {
    console.log('On notification click: ', event);

    event.waitUntil(
        clients.matchAll({
            type: 'window',
        })
            .then((clientList) => {
                for (const client of clientList) {
                    if (client.url === url && 'focus' in client) {
                        return client.focus();
                    }
                }
                return clients.openWindow('/calendar'); // having trouble opening '/' instead of '/calendar'
            })
    );

    event.notification.close();
})

Additionally, my attempts to include multiple actions in the iOS notification were not successful, even though it worked perfectly in Chrome. https://i.sstatic.net/3QurY.jpg

https://i.sstatic.net/pcZ9x.jpg

I tried troubleshooting this issue on an iPhone running iOS 16 Public Beta and Safari Technology Preview with the updated WebKit 16.4 features.

I was hoping to see the notification actions displayed and have the ability to open a specific link within the PWA upon notification click or action selection.

Could it be that these functionalities are not fully supported yet in iOS 16.4? Any insights on when we might expect support for these features or if there's something wrong with my implementation?

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the process for reverting to an older version of Webpack?

In my ASP.NET core Web project, I've successfully installed Webpack using NPM, and the current version is 2.4.1. However, I actually need to have 2.1.0-beta.25 installed. I attempted to install the desired version using the following command: npm ins ...

Switch up the URL and redirect by employing jQuery

Looking for a solution in jQuery to redirect based on user input? <form id="abc"> <input type="text" id="txt" /> </form> If you want to redirect to a URL constructed from the value of the text box, you can try this: var temp = $("#tx ...

Utilizing the jQuery UI Date Picker in an AJAX Request

I have a PHP script that generates HTML along with javascript (specifically the DatePicker from jQuery UI). The PHP script is invoked from a main page using jQuery/AJAX. Although all my HTML is displayed correctly, I encounter a console error that reads: ...

The module in AngularJS could not be loaded

Can anyone help me figure out why I am encountering the following issue: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.6/$injector/modulerr?p0=helloKinveyApp&p1=E…ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.6%2Fangular.mi ...

Errors in Data Capture from AJAX Dropdown Selections

Recently, I've encountered an issue with one of my data fields while attempting to save it to a mySQL database. The problem seems to be related to the fact that the 'id' for the text value is saved instead of the actual text value itself, wh ...

Switch back and forth between words using a simulated typewriter effect in JavaScript

My current project involves writing code that will display text in a typewriter style. The code should be able to print a string, erase the last word, and type out words from an array in sequence. Each word in the array should be displayed one at a time be ...

Extract data from a webpage using Python and AJAX operations

With my knowledge of scraping HTML using Python's Beautiful Soup, I encountered a challenge with this soccer statistics page that utilizes AJAX to retrieve data on minutes played by a player. (I discovered the network call through firebug). I'm ...

Creating a Dynamic Login Panel Using HTML, CSS, and Jquery

Designing a dynamic sliding login panel utilizing Html, CSS, and jquery alongside various plugins. Check it out here: http://24.125.42.135/ When activated, the bar smoothly pushes down the content (click on the login option at the top right corner). This ...

Navigate to a section that has been dynamically loaded through ajax

My page displays a list of products in alphabetical order, with the products dynamically loaded via ajax as the user scrolls. At the top of my page, I have an alphabet list (A-Z) that allows users to click on any letter to jump to the list of products st ...

JavaScript is incorrectly showing the array as empty despite containing strings

I am experiencing an issue with my array of strings in JavaScript. Despite having strings in the array when I print it in the console, the forEach function runs 0 times and JS claims the array is empty when I print its size. What could be causing this?http ...

Display cautionary message upon the deletion of a row from a gridview in asp.net

I have implemented a gridview on my web form that includes a command field for delete and edit functionalities. My goal is to display a javascript alert message when a user clicks on the delete button: Are you sure you want to delete this record? If t ...

Displaying the Open In menu from a specified rectangle using UIDocumentInteractionController

I am encountering an issue with the final line of code in the function below that is being called from a UIAlertController: func createSomeFile() { var output = (some NSData to output to file) let fileName = NSTemporaryDirectory().stringByAppen ...

Is it possible to save user inputs in a .json file for future use, and retrieve and reuse them in subsequent sessions or processes?

I am currently developing an account generator using puppeteer and I have a specific requirement for user inputs. The script prompts the user to input necessary variables, but I am interested in exploring the possibility of storing these inputs in a JSON ...

The fixed left div and scrollable right div are experiencing issues with their alignment

I am having an issue with a section where the left div is fixed and the right div is scrollable. However, the content of the right div scrolls even before the scroll top reaches the section. My goal is for the right div to scroll only when it reaches the t ...

Bootstrap - My table is having trouble accessing a local JSON file

Does anyone have any suggestions for how to read a JSON file and output the data in a table format, either from an internal or external source? I'm having trouble with my current script. Here are the links and scripts I have been using: <link r ...

Unable to view console.log on Parse Logs page

After running the provided cloud code and checking the parse Logs page, I am only able to see the following feedback for the saveAll function: I2014-10-08T15:28:32.930Z] v249: Ran cloud function acceptMeetingBis for user dyGu143Xho with: Input: {"meetingI ...

A step-by-step guide on building an interactive settings page for your Chrome extension

I am looking to develop an options page that features dynamically generated options. My goal is to extract data from a web page's source using my content script and then display this data on the options page. How can I effectively transfer this data ...

The problem arises when Angular's $interval function is not recognized

Despite the possibility of this being considered a duplicate, none of the related topics have provided a solution to my simple date count down directive: class Clock { constructor() { this.restrict = 'AC'; this.replace = true ...

How can I simulate mouse position in a UIWebView?

Can the mouse position (x,y) for HTML-5 elements on a UIWebView be programmatically set using stringByExecutingJavascript in order to trigger hover, mouse over, and other interactions? ...

Error message: "Typescript is indicating that the exported external package typings do not qualify as a module"

After attempting to create my initial Typescript definition file, I've encountered a issue with the subject code found in filename.js (index.js): module.exports = { extension: extension, basename: basename, removeSuffix: removeSuffix, removeS ...