Apple Developers

RSS for tag

This 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.

Learn More

Posts under Apple Developers subtopic

Post

Replies

Boosts

Views

Activity

NFC Implentation for Peer - Peer Device
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.
1
0
431
Jan ’25
Just wondering
I’m just trying to find someone who know what the diagnostic logs o my apple watch are for like sysdouagnos and the Bridge Pair Performance obviously I understand what a diagnostic logs are but it’s looks as if I need to download them still why wouldn‘t it already be running
0
0
263
Jan ’25
Vercel and app-site-association giving a 404
I'm working on setting app-site-association for my site. I've added the app-site-association file to public/.well-known/app-site-association and confirmed that my file made it to apple CDN. I've also checked it on branch.io. The problem is, when I head to my site I get a 404. I checked sysdiagnose logs and can see the same Error Domain=SWCErrorDomain Code=7 "SWCERR00101 Bad HTTP Response: 404 Not Found -- {"status":"404 Not Found"}" UserInfo={Line=275, Function=-[SWCDownloader. URLSession:dataTask:didReceiveResponse:completionHandler:], NSDebugDescription=SWCERR00101 Bad HTTP Response: 404 Not Found -- {"status":"404 Not Found"}, UnderlyingError=Error Domain=HTTP Code=404 "(null)" UserInfo={Line=275, Function=-[SWCDownloader URLSession:dataTask:didReceiveResponse:completionHandler:]}} I'm not really sure where to go from here.
1
0
519
Dec ’24
Scan feature on Iphone 16 or ios18.2
I use the scan feature notes frequently. Steps were: open app click paperclick click scan documents scan save then I share to my email. click mail icon on then I would normally be given a size to choose from small, medium or large it would ask about the subject which I always let blank. With my new phone/updated ios I am given an option to to mail drop or attach document. I have done both and my document size is large. I need to minimize to 25% to fit on computer screen. I spoke to apple support. How do I fix this?
1
0
640
Dec ’24
BLE ADVERTISE
Dear Apple: The program we developed uses BLE broadcasting to discover devices. The discovered device sends three broadcasts, but when we debug the program, we found that the addresses reported by centralManager::didDiscoverPeripheral for the same device's three broadcasts are actually different CBPeripheral * addresses. I would like to ask how we can identify that these three broadcasts are from the same device? Are there any variables in the peripheral that can identify it as the same device? Thanks。
1
0
226
Feb ’25
App logout every time delete from open aps
Hi, I am testing my app with TestFlight. The app is developed with React Native Expo. Step 1: Log into the app – everything works fine. Step 2: Use the app – everything works fine. Step 3: Close the app without logging out, just close it. Step 4: Remove the app from the recent apps window. Step 5: Try to open the app again, but it requires login again. I don’t understand why the login parameters are not retained and why the app asks me to log in again. Code used for login handling: import AsyncStorage from "@react-native-async-storage/async-storage"; useEffect(() => { const loadToken = async () => { const token = await AsyncStorage.getItem(TOKEN_KEY); if(token) { axiosInstance.defaults.headers.common['Authorization'] = `Bearer ${token}`; try { const response = await axiosInstance.get('/auth/check'); const data = response.data; setSession(token); setUser(data.user); } catch (e) { setSession(null); setUser(null); } } } loadToken().then(() => setIsLoading(false)); }, []); Important Note: This issue only occurs when we switch to production. In the test environment, everything works fine, and we don’t experience this problem. However, as soon as we build for production and test on multiple devices, this issue appears. Thanks in advance!
1
0
323
Feb ’25
Whatsapp Notifications Delay
Hi, i bought iphone 16 plus in mid of november and currently on ios 18.2 (beta 4). It was automatically upgraded in my phone. Now the problem i'm facing is the whatsapp notifications. the summarise notifications is not working for whatsapp only. when i receive the msg and my screen is on, i see 1-2-3 msgs on whatsapp icon but got the notifications after 10 seconds. moreover, when i'm texting someone and chat is open during texting i only see single tick on my msgs and when i close my chat then double tick appears. all other apps are working fine. only whatsapp creating this issue. i have reinstalled it, updated it did everything but problem remains same.
1
0
395
Dec ’24
iCloud problem
I use microsoft office excel 2007. When I save a file located in the icloud, the file (often) turns into this the problem, for example, is that excel does not see this file (I'm trying to open it from excel) when I try to open the file manually, it says: The actual format of the file you are trying to open (26068000) is different from the file extension indicated. Before opening this file, make sure it is not corrupted and comes from a trusted source. Do you want to open this file now? icloud' developers, please fix it, thx.
1
0
276
Dec ’24
How to use donated users in your application and display Siri recommended users in Safari's system sharing
The following is my code, which runs successfully and is recommended to succeed, but it still does not show Siri's suggestion to users in the system sharing in Safari import AppIntents import Contacts import CoreSpotlight import Intents import UIKit class TestViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = UIColor.white DispatchQueue.global().async { self.donateMessageInteraction(recipientName: "张三", phoneNumber: "+8613812345678") } } func donateMessageInteraction(recipientName: String, phoneNumber: String) { INPreferences.requestSiriAuthorization { status in guard status == .authorized else { return } // 1. 创建接收者 let recipientHandle = INPersonHandle(value: phoneNumber, type: .phoneNumber) let recipient = INPerson( personHandle: recipientHandle, nameComponents: nil, displayName: recipientName, image: nil, contactIdentifier: nil, customIdentifier: "com.yourapp.recipient.\(phoneNumber)" ) // 2. 创建发送者(你的应用身份) let senderHandle = INPersonHandle(value: "15210639372@163.com", type: .emailAddress) let sender = INPerson( personHandle: senderHandle, nameComponents: nil, displayName: "我的应用", image: nil, contactIdentifier: nil, customIdentifier: "com.yourapp.sender" ) // 3. 创建消息意图 let intent = INSendMessageIntent( recipients: [recipient], outgoingMessageType: .outgoingMessageText, content: "最近怎么样?", // 常用消息内容 speakableGroupName: nil, // 群组名称(一对一设为nil) conversationIdentifier: "com.yourapp.conversation.\(phoneNumber)", // 唯一会话ID serviceName: "My Chat Service", // 你的消息服务名称 sender: sender, // 发送者身份 attachments: nil ) // 4. 配置意图参数 intent.setImage(INImage(named: "user0"), forParameterNamed: \.sender) // 5. 创建并捐赠交互 let interaction = INInteraction(intent: intent, response: nil) interaction.direction = .outgoing interaction.donate { error in error.map { print("捐赠失败: \($0)") } } print("捐赠代码执行完成") } } }
0
0
346
Feb ’25
Workout session [session.end()] taking a long time to end
I'm developing a workout app with a mirrored workout session. I'm having problems with sessions being out of sync. For example, when the workout is ended, it takes somewhere around a minute or two for it to actually fully end, so if during this time I start a new workout, then the sessions will be out of sync. I am using healthStore.recoverActiveWorkoutSession() to recover the workout session but it doesn't always work very well and in particular in the case when a workout has been manually ended (but ending hasn't completed) it enters an out of sync mode. The reason why this case is happening is because I have an third party sensor connected to this mirrored workout session and if the sensor is out of range or turned off, I end the workout. However, if the person had accidentally gone out of range, they would reconnect to the app and restart the workout as soon as they realize and in that case, when the workout hasn't fully ended, it doesn't recover appropriately. I have spent weeks trying to debug this with no luck so any advice will be appreciated.
1
0
839
Jan ’25
Error when copying Home Directory
I am trying to move my home directory to a secondary drive, but I am running into to two issues. When I try to do it via Finder I get the error - The operation can’t be completed because “<my account name>” needs to be downloaded. And when I try to do it via the terminal in recovery mode (after mounting the Data directory), It seems to copy a set of directories within ~/Library/Daemon Containers/. These appear to be snapshots of some sort, which when cp runs, end up taking up the entire drive of the target drive, which is 4 times larger than my base volume. Two questions: Why I am getting the message via finder (and how do I get around it? What is the correct process for moving the home directory to a second drive? Thanks!
0
0
452
Dec ’24
POSIX 96
I’m having trouble downloading my yahoo emails. I use the Mail function for all my email accounts. The Comcast emails seem to be downloading fine. I get the posix96 error. Is there a fix for this yet??
1
0
389
Feb ’25
I can't register in to the Developer account.
I have tried everything. Different addresses, different credit cards, then it appears pending, but the credit card is never charged and then it "resets", meaning I can do the whole process again as if nothing had happened. I have already sent an email to Apple and I have not had a response either. How can I move forward? Some help. Greetings!
0
0
409
Feb ’25