Is it true that the use of ...args is not compatible with iOS 9? :: Combining JavaScript, Ionic,

While experimenting with Ionic, I discovered a peculiar issue when building an app on iOS 9 and using ...args in my function arguments - it resulted in a white screen in Ionic.

Interestingly, the app functioned properly in the browser, but both emulator and device displayed a white screen. Making a simple adjustment by changing ...args to args and modifying my function resolved this issue.

This raised the question for me - are ...args not supported in iOS 9? And if they aren't, is there a reference where I can identify which functions are permissible and which are not?

I often find myself putting in significant effort only to realize during compilation that what worked in the browser isn't functioning correctly on the actual device (similar to the arrow functions from ECMAScript 6 example, where switching from () => {} to function () {} fixes the issue).

Could it be possible that I am making a mistake in my implementation within Ionic/Angular/JavaScript? Your insights are greatly appreciated. Thank you.

Answer №1

Unfortunately, rest parameters are not compatible with iOS Safari 9. You can refer to this ES6 compatibility table for more details.

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

"JQuery conflict arises due to compatibility issues between Yoast and bbPress

Following the recent update of Yoast to version 4.7, it appears that JQuery is experiencing conflicts and not running properly. I noticed that in version 2.3.5 of Yoast, JQuery runs fine and I see this code on the page: <script type='text/javascri ...

jquery method for clearing input field values

I am facing an issue with the form where the company name field automatically loads a value, even though it is a required field. I simply want to clear the previous loaded value and allow the user to input their information. For example, if I previously e ...

Encountered an issue with ReactJS app authentication using Firebase and FirebaseUI. Error message reads: "Uncaught Error: Firebase App named '[DEFAULT]-firebaseui-temp' already exists

I'm currently facing an issue in my code. I am working on a single-page web application in ReactJS with 3 tabs. Whenever the user navigates to one tab, the authentication form from FirebaseUI should appear. However, there seems to be a problem as it ...

MVC3 does not support JQuery UI

Just recently, I had all my jquery-ui elements functioning perfectly. However, now it seems that none of the jquery-ui features are working anymore. In my Site.Master page, I have included the following code... <link href="../../Content/Site.css" rel=" ...

Achieving two-way data binding in a directive without using an isolated scope

Implementing scope: { ... } in a directive creates an isolated scope that doesn't inherit from its parent. However, my usual practice has been to utilize this for easily declaring HTML attributes with bi-directional data binding: scope: { attr1: ...

Java sees the number 10 as two separate characters. Is there a way to modify this behavior?

This program is functioning well as long as the int array does not need to count up to 10. However, I am facing an issue where charat interprets 10 as two separate characters, which is causing problems. How can I handle the exception for 10? To illustrat ...

Guide on calling an async function within a readable stream in node.js

Here is a brief example showcasing the implementation of a custom readable stream named MyStream. This stream retrieves file/folder names from a directory and sends the values to the data-event. In this demonstration, I have implemented two different meth ...

Error in Blinking Tooltip when Hovering Skill Bubble (React and d3)

I've encountered a frustrating issue with tooltips on my website - they just won't stop blinking when I hover over the skill bubbles. I tried fixing the tooltips at a certain location, but whenever there's a bubble in that spot and I hover o ...

Can webpack externals be loaded without relying on a script tag?

Scenario: I am interested in incorporating React components into a web page as separate react applications. For instance, I may want to include a date picker and a color picker. To avoid duplicating React and other common dependencies multiple times for ...

When the React application loads, loadingbar.js will be mounted initially. However, as the props or states are updated, the object

I recently made the switch from using progressbar.js to loadingBar.js in my React application for widget progress. Everything was working smoothly with progressbar.js, but once I switched to loadingBar.js, I encountered a strange issue. After the page load ...

Sharing an AngularJS function across multiple controllers

Creating a basic control panel using AngularJS + Rest API. Developing a factory to handle API requests (GET, POST) and pass back necessary data to a success callback. The processed data must update the $scope, taking into account potential server-side for ...

Importing a JS file within a JS script

Currently, I am facing a requirement to dynamically include a .js file (more jQuery code) within a working jQuery script. Specifically, when my page gets authenticated, I need to add a specific script file. I am looking to accomplish this in ASP.Net MVC. ...

Tips for Sorting a JSON Parsed Array By Page Number

As a beginner in iOS Development, I managed to parse my JSON Data which looks like this: { mid: "1", name: "august 2014", front_image:"http://www.truemanindiamagazine.com/webservice/magazineimage/frontimage/1.jpg", title: "August fist edition", release_da ...

Tips on handling jsonp responses in CakePHP without using the .json extension

When working with CakePHP, the framework determines the data type to return by either checking for the presence of the .json extension in the URL or examining the Accepts HTTP header. It becomes a bit trickier when dealing with JSONP, as it doesn't a ...

Tips for creating endless scrolling <div> functionality

I have been attempting to create a scrolling effect in this div with columns that moves down infinitely - Example, like the one on this Google developer page - Google developers || Infinite scroller image. However, I have not been successful so far. I have ...

Adding a function to the window object using Webpack version 5

After transitioning from Webpack 4 to Webpack 5, I encountered an issue with attaching functions to the window object in my index.js file. Previously, I had a function defined on the window object like so: index.js window.someFunction = function (...argum ...

What steps can be taken to verify that the submitted data is a legitimate numerical pair?

When I receive a string, it should be in the following format: number,number For example: 34.798,52.123 I need to verify that the number is indeed in this format before assigning it to variables and performing calculations. There is also a concern that ...

Display and unveil Bootstrap modals

In my Angular5 web application, I am looking to switch from one modal to another while utilizing bootstrap components and Jquery. $('#myModal').modal('show'); $('#myModal1').modal('hide'); However, I have encounter ...

Is it not possible to utilize inline "if" statements in conjunction with useEffect within a functional React component?

I'm currently working on integrating Okta's React SDK into a TypeScript-based application using functional components instead of class-based ones. My main challenge lies in rendering a part of the app's menu based on the user's authenti ...

Error: The React component throws a TypeError because it is unable to read the property 'map' from an undefined source

I encountered the following error TypeError: Cannot read property 'map' of undefined at ListItemFactory.ts:84:57 at The specific line where the error occurs is: return announcementitems=json.value.map((v,i)=>( To provide mor ...