Questions tagged [ios]

iOS is the dominant mobile operating system that powers all Apple devices like iPhone, iPod touch, and iPad. When seeking programming support on iOS platform, make sure to add the [ios] tag to your questions. For inquiries specifically concerning Objective-C or Swift languages, feel free to include the appropriate tags - [objective-c] or [swift].

Issue with ng-required not validating on iOS in AngularJS

I have been attempting to utilize the ng-required directive in a form. All I did was include ng-required="true" on my input field. When testing in Chrome, upon clicking submit it correctly prevents submission and prompts the user to fill in the required f ...

Experience the smooth CSS3 transition effects on iOS devices such as iPhones and iPads. Elevate the appearance of DOM objects with

I have a basic image contained within a div tag. I use JavaScript to add a transition effect to the div element: <div style="transition: opacity 0.8s linear; opacity: 0.5;"><img src="..." /></div> At the end of the transition duration ...

Error encountered: org.openqa.selenium.WebDriverException - Method not implemented for executing a task on an iOS native element

An error occurs when trying to perform an action (click, clear, send key, etc) on an iOS native element due to the method not being implemented yet. However, the findElement function works correctly. This issue only affects iOS and works fine on Android d ...

Using "-webkit-overflow-scrolling: touch" can cause issues with the CSS 3D perspective rendering

Looking for a solution specifically for iOS Safari Using -webkit-overflow-scrolling: touch seems to disrupt the 3d perspective on iOS devices. Check out the demonstration on CodePen. HTML <div class="pers"> <div class="scroll"> <di ...

Tips for stopping links in iOS web applications from launching in a new Safari tab

I am in the process of developing an HTML application specifically for iPads. To enhance user experience, I have added the web app to the homescreen using the "favorite" option. However, I encountered an issue where every internal URL opens in a new Safari ...

What is the best location to place the code responsible for fetching data with NSURLRequest?

As I venture into the world of developing my first iPhone app, one that fetches JSON data and displays it in UITableView, I find myself pondering a crucial question. Where is the ideal spot in my code to place the NSURLRequest? In my quest for answers, I& ...

Tips for ensuring a static html element remains visible at the bottom of the screen even when the soft keyboard is opened in iOS Safari

Within a webpage, there is an input field and a fixed div positioned at the bottom of the window using CSS properties such as position:fixed; and bottom:0;. To better illustrate this setup, I have created a Codepen demo which can be viewed here: https://c ...

iOS posts being rejected by Devise Registrations controller

Currently, I am in the process of developing a RoR backend for an iOS application. My approach involves using Devise (3.2.4) to secure the API. Nevertheless, I encountered an issue while attempting to register a user via http://localhost:3000/users as prov ...

Utilize PHP to communicate with Urban Airship by sending a message

As an iPhone developer, I am currently building an application that requires sending notifications to devices where the app is installed. I have successfully integrated Urban Airship for this purpose. Now, my next goal is to send messages from a CMS usin ...

Objective C - Organize JSON data into groups

I will attempt to explain my idea and what I hope to achieve. Here is the JSON structure: { "objects": [ { "title": "Title #1", "date": "1446930000" }, { "title": "Title #2", "date": "1437782400" }, { " ...

'Stop' function triggered as numberOfRowsInSection produces a zero value

Here is a snippet from my code: #import <UIKit/UIKit.h> #import "ServiceConnector.h" @interface PartnerTableController : UITableViewController <ServiceConnectorDelegate> @property (nonatomic, retain) IBOutlet NSMutableArray *allPartners; - ...

Encountered a problem while trying to run expo build:ios on a Windows machine for a React

Currently, I am working on developing an IOS edition of my React Native App using Expo CLI. However, during the process, I came across the following error: error Has anyone faced this particular issue in the past? While the Android version of my app was ...

Apple's iPhone does not adhere to media query specifications

My responsive website was functioning perfectly on desktop, Android, and Windows Phone devices. However, when I asked my friends to check it on their iPhones running iOS 10, they informed me that the media queries were being ignored on iPhone models 5, 5s, ...

CSS - Height not working properly on mobile device model iPhone 6

I've been working on a seemingly simple problem for some time now without success! The issue involves a <header> element with a height of 100px. When the screen size reaches a certain breakpoint (specifically targeting mobile devices), I need ...

Experiencing troubles with NSJSONSerialization. An erroneous JSON object has been transmitted to the

Within my xcode project, I have implemented a functionality that involves sending a post request with JSON data to an API. To achieve this, I am utilizing the Unirest library: NSDictionary *jsonObj = @{@"access_token": accessToken}; UNIHTTPJsonRespon ...

Capture Video on iOS devices using the MediaRecorder API and display it using HTML5 Video Player

Issue: I am facing an issue where I cannot record video or get a video stream from the camera on iOS through my Angular web application built using ng build. Investigation: In my investigation, I explored various websites that discuss Apple iOS features ...

Sending the "accurate" data from the specific cell in a UITableViewController to a ViewController

I'm encountering the same issue here. I am struggling to pass the precise data from one TableViewController to another ViewController. Even though I have all the necessary data from JSON, when I select a row, it displays the data from the last row instea ...

Listen to music on an Android device without disturbing anyone using an iPhone

I have an application built in Vue3 that plays a sound when a QR code is scanned. This feature works perfectly on Android and the web, but not when using the browser on iOS. I am struggling to identify the issue. Can anyone provide some insight? <qrco ...

Developing a notification system using Node.js for both Android and iOS devices

Looking to set up a push notification system in nodejs that will work well for both iOS and Android. After some research, it seems like this resource may be useful: If anyone has experience with this, I would appreciate advice on the best approach to impl ...

The landscape orientation causes the button bar to overflow by 100% of the body height

Imagine the scenario below: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> html, body { padding: 0; margin: 0; ...

Automatically rotate Xcode simulator to landscape orientation on iPhone/iPad using Selenium

After examining the Appium log, it appears that it is indicating landscape mode with the desired capabilities being set as follows: [debug] [XCUITest] Setting initial orientation to 'LANDSCAPE' To achieve this, I am currently using the followin ...

Error message 'Token not found' received after attempting to process payment through Stripe

I am in the process of setting up payment functionality using the Stripe API on an iPad. The goal is to allow users to log into their Stripe account and accept payments from others. To achieve this, I am utilizing Stripe Connect for authentication and savi ...

Creating a Back Handler in a React Native Stack Navigator for seamless navigation

Is there a way in React Native Stack Navigator to navigate back to previous pages from some screens and disable the ability to go back from others? I've tried using Back Handler, but it doesn't seem to be working. How can I achieve this functionality? ...

NextJS fails to load on iPhones connected to cellular data

I recently completed the development of a NextJS web application using React on my MacBook Air M1. After compiling a Docker image to ensure compatibility with amd64 processors, I deployed it to an AWS EC2 instance running Ubuntu 20.04 on an x86_64 processo ...

How can I retrieve JSON data from within a function and show it on a textfield in Swift programming language?

I've been exploring how to parse JSON data into Swift, specifically attempting to display the area of my pincode in a text field. In order to do this, I've created three Swift files: mapview.swift, maphandler.swift, and mapmodel.swift. The issue I'm facing ...

Surprising Outcomes of Negative Margin in jQuery Animation

Unique Project Summary I am currently working on a website that incorporates a sliding menu feature. I have successfully implemented this functionality, and the display remains consistent during the animation transitions for sliding the menu in and out. T ...

What types of events can be used to trigger the start of HTML5 audio playback in mobile Chrome?

When it comes to mobile browsers, Audio elements require user action before play can start. The click event usually satisfies this requirement, but touchstart doesn't seem to be an acceptable initiating event in Chrome on Android or iOS. (Refer below ...

Cordova on iOS experiences an immediate error and HTTP status code of 0 when attempting an Ajax call, resulting in a failure with

For the past 3 weeks, I have been struggling with an issue that seems to have no solution. The problem occurs when using Cordova, as my ajax calls return immediately after being triggered. The error message appears right below the sending message in the lo ...

Tips for effectively incorporating NSOperation Queue in objective c

I have encountered an issue with the code below. I am utilizing NSOperationQueue to fetch post data from the server during the login process. My aim is to retrieve a response from the server 8 times. However, the implementation of NSOperationQueue seems to ...

When interacting with elements with the "user-select: none" property, WkWebView still allows text selection

When using an iOS iPad app with a single fullscreen WKWebView, an issue arises when long-pressing on an area with user-select:none - the first text in the next available area without user-select:none gets selected instead of being ignored. Is there a way t ...

Discover the secret to prompting iOS 12 Autofill to request password saving within a React Native application

ISSUE I am currently using React Native 0.59.9 and have implemented a login screen in my mobile app with the intention of utilizing iOS 12's autofill feature to save passwords for new users. However, despite setting up the necessary configuration, th ...

IOS Troubleshooting: Ineffectiveness of the Transform

So I am encountering a slight issue while trying to incorporate this code on iOS because I am not familiar with how iOS operates. On my website, I have implemented a circle that works perfectly fine on browsers and Android devices. However, when it comes t ...

What’s the best way to incorporate a UIActivityIndicatorView while executing a search operation?

I created an app for reading articles that fetches data from a server in JSON format and loads it into a UITableViewController. When users perform a search, there is a delay in loading the search results into the UITableView. I am struggling to incorporate ...

Retrieve the list of device tokens for the APNS service

Is it possible to retrieve a list of all device tokens on which my app is installed through an APNS endpoint? I am aware of the feedback service that provides the status of devices to whom messages are sent, but I believe this is only after the message ...

SharePoint 2013 on a mobile device does not support scrolling within iframes

Recently, I set up a SharePoint 2013 website with a few iframes. However, when I access the site on my mobile devices (iPad and Android), I am unable to scroll through the entire page by touching within the iframe. I attempted to solve this issue by inclu ...

Upon attempting to run ionic for iOS, an error was encountered regarding the arm64 and armv7 architectures

I'm currently in the process of developing a mobile application for both Android and iOS platforms utilizing Ionic version 1. Here is a breakdown of the software versions I'm working with: cordova: 7.0.1 ionic: 2.2.2 ios-deploy: 1.9.2 ios-sim: ...

Tips for Changing Background Color Beyond Body Tag

When using my demo below on Safari for iOS and scrolling up and down, you'll notice that you can scroll outside of the body until removing your finger from the touchscreen. The background color outside of the body is white. Is there a way to change this co ...

The navigation menu dissolves into hiding at the uppermost part of the page upon scrolling upwards on iOS devices

I am currently working on creating a navigation menu that will automatically hide when scrolling down and reappear when scrolling up. This functionality works perfectly fine on desktop and Android browsers, but I have encountered an issue specifically with ...

What is the best method for saving a JSON resource on my device?

When I make a JSON request, it provides me with various parameters, one of which is the name. I want to create a variable to cache this name parameter so that I can access it later in my app. For instance, if the name from JSON request is "david", I would ...

Please assist with utilizing the combination of Facebook SDK and JSON

After going through numerous discussions on this problem, I realized that none of them truly explains the issue at hand. To resolve the conflicts arising from using facebookSDK with JSON, one effective solution is to alter the names of the JSON classes ca ...

How can I delete a hyperlink on a number from my iPhone or iPad?

Is there a way to prevent certain sets of numbers from being linked, like phone numbers do on iPhones? <h2>Table</h2> <table class="table table-sm table-striped table-hover"> <caption class="sr-only">Search Results</caption> ...

Although PhoneGap resolution remains consistent, the outcomes may vary

I seem to be facing a similar issue as discussed in this post on Stack Overflow: Screen Resolution On A PhoneGap App My problem is that I have both an iPad and an Android tablet, both with a resolution of 1024 pixels across. However, while my screen displ ...

Building interactive chat "hubs" with Node, Express, Heroku, and Socket.io

As I've been working on my app for a while now, scalability issues have started to arise. With my limited experience in Node and Heroku, I'm reaching out for some guidance. Initially, I followed this tutorial to set up my node service, essentially creatin ...

Empty results returned by iOS AFJSONRequestOperation

When attempting to fetch data via a JSON request using AFJSONRequestOperation, I encounter an issue where I am able to retrieve the data successfully but unable to seamlessly proceed with the request and pass on the data for further processing. Below is t ...

jQuery Mobile and Phonegap: Content Disappears from Page Header After Transition Finish

My phonegap (2.2.0) + jquery mobile (1.2.0) app is experiencing a peculiar problem. There is a page in my app with a link that loads another page. On the loaded page, there is a back button that takes the user back to the previous page when clicked. This ...

approaches for retrieving a specific JSON value associated with a key in Objective-C

I've recently started learning Obj-C and I'm struggling with getting the output of a JSON-Request. I think the issue lies in my understanding of arrays, dictionaries, and syntax. It would be really helpful if someone could guide me in the right direction. ...

iOS users can now enjoy the convenience of horizontal swiping

I am having trouble swiping through radio buttons on iOS devices. I attempted to slide horizontally using the code snippet below, but it only scrolled vertically within the "Account 1" section of the image. https://i.stack.imgur.com/CBwWq.png new TouchAc ...

Warning: Ionic 4 has encountered error code ITMS-90809, indicating the use of deprecated API. Apple has announced they will no longer accept app submissions that utilize

Greetings from the Apple team, It has come to our attention that there are certain issues with your recent app delivery for "Project 66" version 0.0.9. Your delivery was successful, however, we advise you to address the following problem in your upcoming ...

Capture images with iPad's camera using Selenium and Appium

I'm currently in the process of automating an iOS application on an iPad using Selenium and Appium. One feature of the app involves opening the default camera application on the iPad, allowing the user to take a picture. The task at hand is to automate t ...

Swift - Transforming an NSMutableArray into an array of MKAnotationViews

Currently, I have an array of BarAnnotation objects like this: var bars = [BarAnnotation(latitude: 42.022352, longitude: -93.650413, name: "Micky's Irish Pub", deal: "$2 Drinks 9PM-1AM"), BarAnnotation(latitude: 42.021948, longitude: -93.650348, name ...

Continuous Crashes Plaguing Heroku Application

Update after implementing modifications: /app/index.js:27 2016-12-07T16:03:32.984832+00:00 app[web.1]: liveQuery: { 2016-12-07T16:03:32.984833+00:00 app[web.1]: ^^^^^^^^^ 2016-12-07T16:03:32.984838+00:00 app[web.1]: SyntaxError: Unexpected identifier ...

What is the user-agent string for the Safari home screen?

Is there a unique user-agent string specifically for Safari on IOS that identifies it as being in "Home screen" or "app mode"? I've observed a bug on IOS8 where the browser window appears incorrectly, with the time and battery information overlapping ...

Xcode is unable to locate the 'opencv2/opencv.hpp' file

I'm currently utilizing the npm module react-native-perspective-image-cropper which necessitates the installation of opencv2. Within the package's code, opencv2 is imported as follows: #import <opencv2/opencv.hpp> Despite my best efforts, ...

Leverage the pre-defined Ionic Sass variables for optimal styling

Is it possible to utilize existing Sass Variables in Ionic 5 for our custom CSS classes? The specific variables I am referring to can be found here: https://ionicframework.com/docs/v3/theming/overriding-ionic-variables/ I'm interested in creating som ...

What are some strategies for managing two APIs in a single UIViewController?

I have a single ViewController containing an UIImage and two UITextFields, along with one UITableView. The data to populate these UI elements is fetched from an API. The first API provides the data for the UIImage and UITextFields, while the second API fe ...

Ways to transform a JSON string into an NSString using a specific key

I have a NSDictionary with the following JSON string: { "119": { "name": "Tidy The House", "url": "https://www.website.com" } } Is there a way to extract the name from this JSON string? ...

Please locate and return the requested result with the specified ID

Currently, I am extracting user data from my iOS app (me/friends, me/events, ...). I need to send this JSON to a server for further data processing. The issue that I am facing is that when I receive a response for my me/events object, it comes without any ...

Stop the pinch zoom functionality in Angular NativeScript WebView to prevent unwanted zooming

Currently, I am working on a Nativescript App that utilizes Angular (NG 5.1.1 / Angular 7.x). Within the app, there is a view containing a webview. @ViewChild("myWebView") webViewRef: ElementRef; <WebView class="webview" #myWebView [src]="myU ...

The AJAX call in the Ionic app functions successfully when using "ionic serve" in the browser, but encounters issues when trying to run on an iOS device using "ionic upload"

Struggling with this issue for 3 days now. The app functions properly in the browser but encounters issues on iOS devices. When I use an alert to display data retrieved from the ajax call, it shows up as null on iOS. REGISTER.HTML <div ng-controller=' ...

`local data erasing in Ionic app on both iOS and Android devices`

I am in the process of developing a mobile application with a backend server built on Rails. The main concept is that upon successful user sign-in, the server sends back a unique token along with their user_id. These two pieces of information are stored in ...

What is the best way to organize a flatlist for rendering?

I'm struggling with separating some flat-lists into different components. How can I arrange the rendering of the flat-list like the sample form (Picture "Sample UI")? I've tried, but it's not working correctly as it renders flat list A first ...

How can you efficiently handle parsing a JSON Array with dynamically changing keys following each API request?

I have encountered a challenge while working on parsing JSON in Swift. The API call returns a JSON array dictionary that contains the names of nearby wifi networks. My concern is, the number of networks can vary at different locations. How can I parse this ...

Tips for organizing static JSON files for XCTests

Currently, I have a collection of static json files within my project that I am utilizing in unit tests instead of API responses. In order for this setup to function properly, the target membership of these files must belong to the production target; other ...

Creating a mobile application for iPhone 4 that utilizes a sqlite database

I have been working on an app that involves storing JSON data in a SQLite3 database by creating and inserting the data programmatically. Everything is functional, but I am looking to improve the user experience by accessing the data from the local databa ...

Optimizing User Experience: Maintaining Continuous Login Sessions on iOS with jQuery Mobile and PHP

I have successfully developed a jQuery Mobile website integrated with PHP that requires user authentication. The website is performing well on all platforms. Users using iPhones or iPads are encouraged to add the website to their home screen as a web clip, ...

Instructions for removing the status bar from the configuration file

Struggling to remove the status bar that's covering my header in my Phonegap-wrapped HTML5 mobile app. I've tried adding preferences to the config.xml file, but still no luck. Here's what I added: <preference name="fullscreen" value="tr ...

Get specific information from Firebase based on a certain field

I am working with Firebase and the database structure I have is as follows: Users user1 email: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c2a7baa3afb2aea7f382b6a7b1b6eca1adaf">[email protected]</a>" ...

How to Use RestKit on iOS to Retrieve a Specified Number of Elements Instead of the Entire

I am looking to implement an app similar to Twitter where objects are loaded in tens from the JSON data instead of loading all at once. Is there a way, using RestKit, for the "load more" button in UITableView to load the next ten objects if they exist in t ...

Utilize external URL in trigger.io's custom UIWebView component

I'm in the process of transitioning my existing backbone application, designed for a native iOS UIWebView, over to trigger.io in order to utilize its image caching and camera access features. The goal is to make this migration quickly and efficiently. Ini ...

Having trouble with missing quotes in Swift when making a REST POST request

Struggling with a seemingly simple REST call that has left me completely stuck. I have a node-based restful service that requires an array of strings as input. However, every time I make the call with what seems like a valid parameter, the server throws an ...

I would like to know the best way to compare two JSON data sets, filter out any matching data, and then store the remaining results

To efficiently extract all Post Titles from a JSON API, I am utilizing another JSON API of users to further retrieve the count of comments for each Post. Here are the APIs being used: API for USERS: http://jsonplaceholder.typicode.com/users API for POSTS ...

Having trouble structuring URL data in JSON format? Look no further! Check out the example source URL provided for guidance

Check out the URL source code here: I attempted to use this code, but encountered an issue with struct integration. struct Weather: Codable { let weather : [cos] let base: String } struct cos : Codable { let main: String } ...

Incorporate a refresh button into the JSON table view that includes an activity

How can I implement a refresh button in my app that displays an activity indicator when pressed? I have written the following code: In this app, I am using JSON to retrieve data from a server and I want users to see updated content when they press the re ...

Transferring JSON data from an iOS device to a PHP server

I've run into an issue while attempting to transmit JSON data from an iOS application to a mySQL database by means of a php page. Unfortunately, it seems that the POST data is not being received on the php page. - (IBAction)jsonSet:(id)sender { ...

What are the steps to allow access to react-native-camera after initially denying permission?

When you first launch the app and go to the camera, a Permission modal pops up on Android or iOS with the options of allowing or not allowing access. The react-native-camera package is used in this scenario. It includes a property called notAuthorizedView ...