Hello,
I am implementing In-App Purchases in my app and want to ensure that only users whose email matches their Apple ID email (the account used on the device as apple account) can purchase the subscription.
Is it possible to retrieve the Apple ID email from the device or verify if the email matches the user's email in the app?
If this is not feasible, what is the recommended approach to differentiate users and associate subscriptions with specific users in a secure way? For instance, how do I ensure that a subscription is tied to the correct user within my app?
I understand privacy constraints, but I am trying to find the best way to match the subscription to the correct user while adhering to Apple's guidelines. Any guidance or best practices would be appreciated.
Thank you!
Apple Developers
RSS for tagThis is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
When I run a mixed OC and SWFit project, systems running before iOS 18 will experience the following crashes
iPhone15 Pro 18.4beta2版本,隔空投送碰一碰:两设备靠近共享名片功能失效
Topic:
Community
SubTopic:
Apple Developers
Our app provides configuration and maintenance features for Siemens electrical devices. The app supports multiple devices and the devices have their own specific features, which also need to be supported by our App.
The devices can be released to the market only when our app supports those features.
Our app release timeline is once in every 4 months. We face a challenge when some of these devices are not able to deliver their features by our release time.
So, we would like to make these devices plugins, which can be independently released, without releasing the App every time. The app would, of course, be released once in every 4 months, depending on the common features.
I'm not able to find how to release only the plugins within the app, without releasing the entire app.
Some one has suggested app extensions, but that does not fit our solution as in some cases, we need continuous polling of data from one or mode devices for minutes or hours, as the app can be used by the user to monitor some of the device values.
Topic:
Community
SubTopic:
Apple Developers
I'm a developer that has only produced for a single company. Though my developer account shows me as the account holder, my "Enrolled as" status is "Organization," and the "Entity" field shows the name of that company. I want to build an app for a separate company/organization, but unsure how to proceed. My App Store Connect account shows the original company name beneath my name as the only option in the account ID selector menu, so when I begin the New App process it automatically assumes I'm doing it for that company. Can I change my "Enrolled as" status to something independent of any organization, do I need to create a completely separate account to do this, or how should I proceed?
Any help would be appreciated.
Thanks.
Apple In-App Purchase sandbox environment can receive App Store Server Notifications v2, but the production environment is not receiving any notifications. I have verified that the configured URL is correct and it appears that Apple is not pushing messages in the production environment. Is there anyone who knows how to troubleshoot this issue
I'm receiving this error message from Apple saying that my app is crashing when they test, but I've already done the tests on the iPad version they recommended and it worked normally.
Message below of the review team: Hello,
Thank you for your resubmission. Upon further review, we identified additional issues that need your attention. See below for more information.
If you have any questions, we are here to help. Reply to this message in App Store Connect and let us know.
Review Environment
Submission ID: 4f068d93-c30e-431c-b65c-6ff4c3ab1098
Review date: January 23, 2025
Version reviewed: 1.0
Guideline 2.1 - Performance Issue Description
The app still crashed during review. Apps that crash negatively impact users.
Steps leading to crash:
The app crashed upon login attempt.
Review device details:
Device type: iPad Air (5th generation)
OS version: iPadOS 18.2.1
I left the file below crashlog
crashlog.txt
Topic:
Community
SubTopic:
Apple Developers
Macos15照片app需要点击一下,不能直接进入,点击一次后,还要再点击一下,才能看到照片,希望能修复一下
Our code is using .lowQualityThumbnail to generate a thumbnail, it stops working when users update to 15.2 .
Test it with a regular jpg file for fileURL.
The only way to make it work is to change it to .thumnail or remove it.
It's not deprecated, is it a MacOS bug? customers don't want to keep updating the software.
Everything works in MacOS 15.1
import QuickLookThumbnailing
func generateThumbnail(for fileURL: URL, size: CGSize, scale: CGFloat) {
let request = QLThumbnailGenerator.Request(fileAt: fileURL, size: size, scale: scale, representationTypes: .lowQualityThumbnail)
QLThumbnailGenerator.shared.generateBestRepresentation(for: request) { thumbnail, error in
if let error = error {
print("Error generating thumbnail: \(error)")
} else if let thumbnail = thumbnail {
// Use the thumbnail
let image = thumbnail.uiImage
// Do something with the image
}
}
}
Topic:
Community
SubTopic:
Apple Developers
My main app is CardView based w/programmatic navigation.. My secondary app is a nice EventListView w/programmatic navigation. Both are functional with no errors.
I want to add an event list to my CardView app but the appearance is all wrong. See image. The blue swirl at bottom is all of my List that appears.
I can post images of code, if needed.
My question is this - can I combine CardViews and ListViews?
Topic:
Community
SubTopic:
Apple Developers
We are in the process of developing a mobile banking application and have a key requirement related to NFC-based peer-to-peer (P2P) transactions. Our goal is to enable secure and seamless money transfers between two devices using NFC.
Business Requirement:
The application will provide a feature where users can initiate money transfers via NFC.
The sender starts an NFC payment session from their device.
Simultaneously, the receiver starts an NFC session to accept the payment.
The sender's device should be able to detect the receiver’s NFC tag and process the transaction securely.
Can iOS support Bluetooth trackpad?
Topic:
Community
SubTopic:
Apple Developers
Hey everyone, I'm using this view code to create a camera preview for my app. I wanted to create a zoom experience when you pinch. I know how ton do this for images, but not for a view like this.
Does anyone know anything that could help? Thank you.
I have two simple tests initially triggered by a title of a game setting: "Highest score Wins" or rule.hasSuffix("wins."). The code in both cases looks for the highest score and in the latter case checks to see if a target score has been achieved. This work fine. But when I display the final results, the first works fine and the latter fails to display the name; defaulting to the No One Wins - which is incorrect. The relevant pieces of the code are:
case rule == "Highest score Wins":
// Find the highest score
let maxScore = scores.max(by: { $0.1 < $1.1 })?.1 ?? 0
let topScorers = scores.filter { $0.1 == maxScore }
gameIsDraw = topScorers.count > 1
winner = topScorers.count == 1 ? topScorers.first?.0 : nil
// This work and will display the winner name correctly - see below
case rule.hasSuffix("wins."):
// "Player to reach X wins."
let topScorers = scores.filter { $0.1 >= target }
if !topScorers.isEmpty {
let maxScore = scores.max(by: { $0.1 < $1.1 })?.1 ?? 0
let topScorers = scores.filter { $0.1 == maxScore }
gameIsDraw = topScorers.count > 1
winner = topScorers.count == 1 ? topScorers.first?.0 : nil
// This works but does not display the name
//This is the section that displays the names (winner)
if gameIsDraw {
Text("The Game is a Draw")
.font(.largeTitle)
.bold()
.foregroundColor(.orange)
} else {
Text("Game Over!")
.font(.largeTitle)
.bold()
Text("\(winner?.playername ?? "No One") Wins!")
.font(.title)
.foregroundColor(.green)
}
I have tried everything, but am losing the will to live
Topic:
Community
SubTopic:
Apple Developers
I want the wkwebview to revert to its previous state when I restart it.
Too many irrelevant posts come up when I attempt to search for something. There should be an easy button or something to earmark posts as something irrelevant- something that shouldn't come up in a search. I'm looking for something in Xcode 15 and frequently the top posts in the search are 10 years old and don't have any relevance whatsoever to the solution to my problem.
Topic:
Community
SubTopic:
Apple Developers
[https://vimeo.com/manage/videos/1051990313)
We are experiencing an issue where a user is unable to open our app on their iPhone 16 Pro Max running iOS 18.3. When the user selects the app, it begins to scale to screen size but then fades away without fully opening. It is unclear whether this is a crash or another issue.
To troubleshoot, we created a simplified version of the app containing only a single screen displaying "Hello, World." The user experiences the same issue with this version, leading us to believe there may be a device-specific setting or compatibility issue at play.
Steps the User Has Tried:
Checked device storage – over 200GB available
Offloaded and reinstalled the app
Deleted and reinstalled the app
Updated to iOS 18.3
Forced restart of the device
Reset network settings
Turned off VPN
Despite these steps, the issue persists. We would appreciate any guidance on potential causes or troubleshooting steps to resolve this issue.
Topic:
Community
SubTopic:
Apple Developers
is there any change in application background to foreground transition,as we are facing issue of broken connection for latest iOS 18.3?
The Bluetooth on my iPhone 14 hasn’t been working for a week now. Everything was fine until, at some point, it started endlessly turning on and off by itself. I’ve tried resetting the settings, doing a hard reset, updating to iOS 18.3—none of these helped. I even deleted all VPN profiles just in case (I saw this suggested on forums), but that didn’t work either. According to forums, this bug has existed since September and affects thousands of people. The constant cycling causes the Bluetooth settings to freeze. Please help! My watch, headphones, car—everything has turned into a pumpkin!
Its normal to have connections to developer.apple.com on an device not in developer mode?
Topic:
Community
SubTopic:
Apple Developers