Hardware
RSS for tagDelve into the physical components of Apple devices, including processors, memory, storage, and their interaction with the software.
Post
Replies
Boosts
Views
Activity
Hello All, I am building an application that involves the usage of accelerometer data. How I handle the data will change based on the accelerometer specifications. I have been looking all over for the accelerometer specifications for the iPhone13 (the iPhone that I am testing my application on), but I cannot find it anywhere. Is it public knowledge?
I'm trying to create a productivity app that utilizes gyroscope data to detect when the phone is picked up. However, in my code, it seems that after I detect the phone flipping over, gyro updates become unavailable and I start receiving the sentinel value instead, which causes the code to not work properly. What happens is that I will receive gyro updates until faceUp changes value, at which point gyroData becomes unavailable.
let dTheta = Double(self.manager.gyroData?.rotationRate.y ?? 0)
if dTheta > 0.1 || dTheta < -0.1 {
totalRotation = totalRotation + dTheta
}
tO = Date.now
if(totalRotation >= 0.9 || totalRotation <= -0.9) {
//Block that detects a phone flip
if faceUp == true {
faceUp = false
}
else if faceUp == false {
faceUp = true
stopText = "Timer paused at \(currentTimeRemaining)"
}
totalRotation = 0
}
guard shouldProceed() else {
return
}
currentTimeRemaining = dispTime(mustRedo: mustRedo)
keepScreenOn()
let hours = job.hours
let mins = job.mins
let secs = job.seconds
if mins == 0 && hours == 0 {
minsDone = true
}
if secs == 0 && mins == 0 {
secsDone = true
}
if mins == 0 && minsDone == false {
job.setHours(new: (hours-1))
job.setMins(new: 59)
}
if job.seconds == 0 && secsDone == false{
job.setMins(new: (mins-1))
job.setSeconds(new: 59)
}
if hours == 0 && minsDone == true && secsDone == true {
workTimeActive = false
//stopTimer()
}
else {
job.setSeconds(new: job.seconds-1)
}
if manager.isGyroActive == false {print("not active tag 3")}
currentTimeRemaining = dispTime(mustRedo: mustRedo)
private func keepScreenOn() {
UIApplication.shared.isIdleTimerDisabled = true
}
private func shouldProceed() -> Bool{
if faceUp == true {
if manager.isGyroActive == false {print("not active tag 4")}
return false
}
return true
}
Greetings!
I've added a Matter accessory via the Apple Home app. In my app, I'm attempting to commission this device and add it to my fabric. However, when I try to open the commissioning window, I receive an error stating, MTRBaseDevice doesn't support openCommissioningWindowWithDiscriminator over XPC.
It appears that opening a commissioning window via an XPC connection is not yet supported. Is there another method to commission the device? Can I retrieve the setup payload from the MTRBaseDevice object or the shared MTRDeviceController?
Here's the simplified version of my code:
var home: HMHome // HMHome received via HMHomeManager
var accessory: HMAccessory = home.accessory[0] // my Matter-supported accessory
let deviceController = MTRDeviceController.sharedController(
withID: home.matterControllerID as NSCopying,
xpcConnect: home.matterControllerXPCConnectBlock
)
let device = MTRBaseDevice(
nodeID: accessory.matterNodeID as NSNumber,
controller: deviceController
)
device.openCommissioningWindow(
withDiscriminator: 0,
duration: 900,
queue: .main) { payload, error in
if let payload {
// payload not received
} else if let error {
// I'm getting here "Error Domain=MTRErrorDomain Code=6 "(null)""
// and "MTRBaseDevice doesn't support openCommissioningWindowWithDiscriminator over XPC" logged in the console
print(error)
}
Is there a possibility to develop an iOS app that is connected to an external camera connected through lightning or USB-C port and receives video stream. We need to be able to get this video stream even while the app is in the background or if the phone is locked. We could have the camera connected wirelessly through the lightning port. Is there an available library or a sample app featuring such functionalities. Thanks.
Hello,
I am working on an AR application using the IPad Pro 5th gen and I need to have more informations about the precision of the accelerometer and the gyroscope about this IPad Pro.
If anyone has informations about it or know how to get those informations, it will help me a lot !
Hello,
I've encountered a concerning issue while working with Core Haptics which I believe warrants attention from the community and Apples engineering team. When attempting to play a haptic pattern using the ChHapticEngine.playPattern method with a corrupted AHAP file path, I've observed unexpected behavior. Specifically, the player is immediately destroyed, triggering the notifyWhenPlayersFinished callback with nil error before executing the catch block(catch block is eventually executed), Furthermore, this behavior introduces ambiguity regarding the successful playback of haptic patterns, as corrupted files can produce false positives in error notifications.
Current workaround is simple, AHAP files are JSON formated files at the end of the day, so just try to decode data or create Foundation object from given JSON data. and if this fails then data must not be in expected format(or decoding strategy is off), that way you can guarantee the validity of an AHAP file before passing it to your player.
Michaud Reyna,
Senior iOS Engineer
I will purchased new i phone 13 in 27 Feb 2024 its 4 day old and i noticed every 4 to 5 minutes my mobiles battery drains 1% why it is possible pls fix this issue. currently working on ios 17.3.1 .pls fix this battery drain so fast.
Hello everybody, thanks for any feedback.
I updated my cMP 4,1-5,1 from High Sierra to Mojave after installing the Saphire Nitro+ RX580.
Since Mojave was installed (over H Sierra), my mac keeps crashing and restarting at sleep.
I get mainly 2 kinds of reports -which I do not understand- one about kernel attack and one about bluetooth.
Any help / directions is greatly aprecciated!
I have a Samsung wide screen monitor that worked with 2017 MacBook Air with intel running latest OS on beta that's available - Monterrey 12.7.4 - until I download software to share with a government entity. After removing that share screen software, I can no longer get a resolution about 1920x1080, which results in my monitor display looking stretched. I've reinstalled OS three times, set to monitor to defaults two times, and still nothing.
How do I add resolution size about 1920-x1080?
My battery used to last several days now it drains overnight after the 14.1.2 iOS upgrade!
I am in the public beta. On my iPad, it shows that RC for 17.4 is available but can’t be installed because space is low. I have to use Devices or Finder to update. When I connect my iPad to my pc or Mac both say 17.3.1 is the latest version…even though the iPad says RC 17.4 is available. So it won’t update.
This just started recently. Any suggestions?
Just did the mac OS update and now my external drives aren't showing no matter what I'm doing even through disk utility
Hi, I noticed that several of the top Vision Pro apps such as Disney+ and Max have similar if not identical SFX for basic navigation like Select and Back. I was wondering if Apple has provided an audio SFX library as a resource, or if the similarity is coincidental.
I'm not familiar with Apple providing anything like this in the past, but figured on a totally new platform where they might be trying to establish a paradigm, it was worth looking into!
I'm working on an app (actually in Test Flight) that has camera and NFC support. So in iPhone is obviously working as expected, but when testers want to try the camera "aspect" of the app on iPads they can't even download the app it says "No compatible hardware" in Test Flight.
What I need to do in this case, I already have a UI/UX solution when theres no NFC support or it's disabled (Android can detect this) but here I have no clue if I'm missing something.
Thanks in advance
I have a problem with the JS library 'dom-to-image', This JavaScript library converts a div to an image, but it's not working well on iPhone and Mac devices. Sometimes it doesn't work at all, and other times I need to download the image multiple times for it to work. I understand that Mac/iPhone devices have different rendering logic, but is there a way to check what the problem is and how to fix it?
I tried dom-to-image-more and some delay but still not working.
Thank you!
I recently purchased a MacBook Pro with M3 chip running Sonoma 14.3.1 (to replace a MacBook Pro that used an Intel chip and ran Ventura 13.6.1.)
I need to open Port 2001 to use socket.io for an app I am developing. On the older Mac, I simply entered : sudo ufw allow 8001
Now the Mac apparently uses pfctl as a firewall, but the documentation on how to open a port is not at all clear.
Can you help.
I cannot get CMMotionActivityManager.startActivityUpdates() to work. I have given my app permission to use core motion and also put the required description key into my Info.plist file.
I am expecting my user to walk. I call startActivityUpdates() and then stand up and start walking. I typically get about 3 callbacks within a couple of seconds, all of which have "false" set for all of the activity flags, even "unknown". Then after that I get nothing.
I can't figure out what I could possibly be doing wrong here. The code is really simple. I looked at doezens of examples and my code is doing the exact same things.
I'm having issues using Finder Search (and spotlight search) for files on the network drive. Till the new update of OS Sonoma finder search was working, I think its a bug but today I uploaded to the latest version (14.4) but the issue remains.
The issue is simple, when I search files/folders/anything on a network drive I find nothing. For example I have folders named with numbers "21053" "10992"; if I put the exact name on the search bar it doesn't show anything.
I don't know what to do, please help me.
Is apple still deciding what we can view, disabling parallax on websites (safari) or is there a workaround? I am a graphic designer and web developer with an iPad Pro. iPadPro uses "desktop" css not tablet (due to its larger size), so it looks like the desktop website but the beautiful features of parallax are missing. Not helpful with troubleshooting and editing websites on iPadPro after hours.
Anyone know a way to force parallax to work?