I'm using Sign In with Apple and requesting both .fullname and .email.
The first time I sign in on any given device, the callback to my app has an authorization credential that contains an email address and a fullname, as expected.
However, any subsequent login on the same device does not return either the email address or the fullname. All I get is the user ID string.
The server I'm working with requires an email address to log in, so I need that email address. Why does it only appear the first time?
Frank
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I'm trying to figure out how to manually position a subview within a view using SwiftUI.
For example, when the user taps the screen, I want to place a small icon on the screen at the position tapped.
I know how to get the coordinates of the tapped location but I don't know how to either place a view there or move an existing view already being shown to that location.
In a regular non-SwiftUI app I can set the frame, or set up constraints. I don't know what the best approach is in SwiftUI.
Thanks.
Hi,
I've been asked to estimate a project that would require ARKit, unfortunately I'm new to the technology and need some quick answers as to how it works.
The app my customer wants to build would overlay simple graphics at street addresses, as the user pointed their camera at buildings or storefronts.
For this to work, I'd need to be able to have the AR view tell me what map locations or street addresses are being seen in the camera view. Is this possible?
Thanks,
Frank
Hi,I have an app that includes a very simple one-button interface for recording a video. Our customer wants to be able to switch between the front and rear cameras while the video is being recorded, and without any interruption in the video stream. I notice that even the iOS built-in camera app doesn't do this, but I've heard that some third-party apps do.Is this possible in a practical way? If so, how would I go about it?Thanks,Frank
How do I configure an iPad app to only work in portrait mode?In Xcode there are checkboxes for the four orientations, and only Portrait is checked, but the app still rotates into landscape mode.I also tried checking the "Requires full screen" box, but this didn't have any effect.Thanks,Frank
Is it possible to set a silent local notification?
Is there any way to scan for Bluetooth advertising messages while in the background if the device doesn't advertise any service IDs?
I've been asked to build and app that does this. The device in question is an off-the-shelf medical alert button (my company doesn't make the device and can't alter its firmware). Upon examining it, I find that it does not advertise any service IDs nor does it offer any ability to connect, it works purely by sending advertising packets.
I'm told that there are Android apps that can work with this device even while in the background. I checked the iOS bluetooth docs to see if any new scanning capabilities had been recently added, but could not find anything.
Thanks,
Frank
Is it possible to monitor the accelerometer or gyroscope when running in the background?
My goal is to develop an app that detects sudden accelerations, like if the user fell down stairs, or was in a car accident.
Thanks,
Frank
Hi,The UIWebView class has a convenient property called scalesPageToFit, which can be used to allow small web pages to scale automatically to fit the frame of the web view.But this class is now deprecated in favor of WKWebView, which doesn't seem to have an equivalent property. How do I get the same functionality with WKWebView?Thanks,Frank
Hi,I've been unable to upload a build for the last several hours. Xcode spins for a while on "Fetching list of teams from the Developer Portal..." and then reports "The request timed out".This is not a new app or a new account; I've uploaded about 70 previous builds.Frank
Hi,Usually when you create a new class or other file in Xcode, the default location of the new file is a folder with the same name as your project.Somehow, I've ended up with a project where the default location for new files is the folder above this (the one with the .xcodeproj file in it). I can certainly change the folder whenever I make a new file, if I remember to do it, but often I forget, and end up with half my files in one place and half in the other.What controls this default, and how can I change it back to the folder I want?Thanks.
Xcode won't remember my Git credentials if I close and re-open it. It remembers them while Xcode is running, but always asks me again whenever I shut it down and reopen it.
My Git repository is hosted with Beanstalk, which is not one of the ones listed in the drop-down list in Xcode.
I have saved my credentials with Git on the command line and I'm able to do Git command line operations without re-entering them, but Xcode doesn't seem to recognize this.
I'm really getting tired of retyping my password all the time. What else can I do?
Hi,I'm working with subscriptions.How do I know when a subscription expires, or is cancelled by the user? Does Apple push this information to my app automatically, or do I have to execute a command such as SKReceiptRefreshRequest or restoreCompletedTransactions?What is the difference between requesting a receipt refresh and restoring completed transactions?Thanks,Frank
I'm trying to figure out the right way to format a Decimal number as a currency value in Swift.
For example, if the Decimal contains the value 25.1 I'd want this to print as "$25.10". If it had the value 25, I'd want "$25.00". If it happened to contain a value like 25.4575, I'd want to round it off and display "$25.46".
There are a confusing amount of functions surrounding Decimals and string formatting. I know I can't just use String(format: "%.2f", value) like I can do with floats and doubles.
There appears to be a new FormatStyle property of Decimal, but I can't use that yet because it requires iOS 15.
Thanks,
Frank
I need to do something that seems simple but I can't figure out the right syntax.
Given a string, I need to search for the first occurrence of a substring (not a character). If found, I need to create a new string by removing the part of the old string that is before the substring.
I can't see how this is done in Swift. There is a "firstIndexOf" function, but it only searches for one character at a time.
I also know that there is a "range(of:)" function, but I can't find its documentation, and I don't know what the return type is, or how I would use it.
Thanks,
Frank