Search results for

Popping Sound

19,600 results found

Post

Replies

Boosts

Views

Activity

Reply to TCC Permission Inheritance Failure: Swift Parent -> Python Child
[quote='805245021, sonnylife, /thread/805245, /profile/sonnylife'] our core monitoring logic is in a Python daemon. [/quote] I’d like to clarify what you mean by this. On macOS we generally use the term daemon to mean a launchd daemon, that is, something that launchd runs in the global context, usually as the result of a property list file in /Library/LaunchDaemons [1]. However, it sounds like you’re use in in the more general sense of a program that runs in the background. So, how is this program actually launched? You mentioned it’s a child process, so presumably you’re using fork / exec* or posix_spawn or something layered on top of that. In which case, how is the parent process launched? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] Or installed as a daemon via SMAppService.
3w
Reply to iOS App Crashes after install but not when running from Xcode
OK, thank you. So I do have an Enterprise account; on the device I installed the app by hand, I do have the trust setting, and it’s trusted. The app will launch and exit and just sit in the background. To give you a scale, we deploy the application via MDM to our fleet, which is less than 10,000. We have been seeing devices more regularly where the app launches and exits right after seeing the splash screen. I think the next step here is to reproduce the problem, collect a sysdiagnose (make sure you don't reboot the device until you've collected the log), then take a look at the console log to see what happened. I don't know what you'll find, but the device WILL log anytime in choose/can't run an app. This also seems to occur on newly enrolled devices. FYI, the devices are all supervised. One last data point. If I sign the app as AdHoc using another non-enterprise developer account, the app installs (did not use MDM) and launches and runs fine. Sure. All of this sounds like a problem with the enterpr
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to PushToTalk
3: Use a Bluetooth device to call up the microphone for audio recording and write the audio data to the file. What is the “Bluetooth device here? Is it: (1) A standard, classic Bluetooth, consumer headset (A2DP/HFP)? To support these, all you need to do is enable accessory events using setAccessoryButtonEventsEnabled(...), at which point the PTT framework will start delivering events through the standard delegate methods. The main issue to be aware of here is that the entire process that makes this work is inherently a bit weird and can look somewhat buggy. For example, many A2DP head units automatically send play on connect, which the PTT framework will convert to a start transmission. The problem here is that the system doesn't really have any way to know exactly what kind of device it's dealing with (for example, differentiating between an headset and a head unit), which means any attempt to really fix one edge case ends up breaking other devices. Two points to all of this: Your app is go
Topic: Media Technologies SubTopic: Audio Tags:
3w
Prevent SwiftUI to stop rendering UI when window loses focus.
Hello, I am writing an audio utility, with a typical audio track player, in SwiftUI for macos 26. My current problem is that the SwiftUI stops rendering the main window UI when the window loses focus. This is a problem since even clicking on the app menu bar has the window loose focus, and the timer, time cursor and all animations of the audio piece stop. All baground services, audio, timers and model continue running (even tho with some crackling on the switch). Once the window focus is re-obtained the animations continue and skip to current state. I have read that SwiftUI optimizes macos like ios, and disables the ui run loop, but there must be a way to disable, since this obviously not the case for most mac app. Is there a solution with either SwiftUI or involving AppKit?
1
0
127
3w
Reply to Copying files using Finder and Apple Events
Okay, I made it working exactly as I wanted, so I'd like to inform all people participating here, but also others who might see this while searching for similar content. The first stumbling block was making sure the application can actually send Apple Events in the first place. And in that regard I admit I should've listened better to @Etresoft and I apologize to him for not listening more carefully and dismissing his remark about hoops so that the app can actually send Apple Events too easily. It turned out that, even though the application is NOT sandboxed, com.apple.security.automation.apple-events entitlement is mandatory in the entitlements file. I couldn't assume it would be necessary even for a NON-sandboxed app, but it is. From my experience with executing AppleScript from another, sandboxed, application I remember that defining com.apple.security.automation.apple-events in the entitlements file and NSAppleEventsUsageDescription in the Info.plist file always go together and that's the case here too. S
3w
Reply to PushToTalk
1: Turn on the PushToTalk status 2: The application switches to the background 3: Use a Bluetooth device to call up the microphone for audio recording and write the audio data to the file Can you help me write the relevant code? ( I spent more than a month on this function, but it hasn't been solved) Thank you.
Topic: Media Technologies SubTopic: Audio Tags:
3w
Some issues and questions regarding the use of the BGContinuedProcessingTask API
Hi, I have been recently debugging the BGContinuedProcessingTask API and encountered some of the following issues. I hope you can provide some answers: First, let me explain my understanding of this API. I believe its purpose is to allow an app to trigger tasks that can be represented with progress indicators and require a certain amount of time to complete. After entering the background, these tasks can continue to be completed through the BGContinuedProcessingTask, preventing the system from terminating them before they are finished. In the launchHandler of the registration process, we only need to do a few things: Determine whether the actual business processing is still ongoing. Update the progress, title, and subtitle. Handle the expirationHandler. Set the task as completed. Here are some issues I encountered during my debugging process: After I called register and submit, the BGContinuedProcessingTask could not be triggered. The return values from my API calls were all normal. I tried different device m
7
0
216
3w
Reply to How to switch in-app-purchases from sandbox to production?
What I don't understand from the reviewer's response is what receipts validation are they talking about? When a user makes a purchase, it creates a receipt in the app bundle. Your app should check the validity of that receipt. If it is valid, then you make the premium features available. If you don't validate the receipt, then hackers will re-distribute your app with a fake receipt so that anyone can use it for free. They might even charge a fee, making money off your app instead of you. Don't assume you're too small to be targeted. I assure you that you're not. I have no payment servers (the whole concept of using Apple's in-app-purchases service is to not have to deal with my own payment implementation) That's something totally different. Most apps are subscription based or have some service provided over the internet. For these use cases, Apple provides a quick-and-easy way to validate receipts. In your case, since you're entirely on-device, you'll need to validate the receipt on-device. That's tricky beca
Topic: App & System Services SubTopic: StoreKit Tags:
4w
Reply to PushToTalk
So, let me start here: But there are problems with clicking on recorded audio on Bluetooth devices (all noise or no sound during playback). The thing to keep in mind here is that Bluetooth has two entirely separate audio mechanisms, which have very different levels of audio quality and behavior: A2DP -> Playback only, higher quality, modeled as music player. HFP -> Play and record, lower quality audio, modeled as a phone. Switching between those modes isn't immediate, so manipulating the audio session configuration can change how audio sounds and/or cause odd glitches. These issues will also be worse in the background, where your app no longer has direct/less control over the audio session state. In terms of your code, there are a few different issues: (1) AVAudioPlayer should not be used for exactly the same reasons you should not use AVAudioRecorder. All your playback and recording should be going through AVAudioEngine. (
Topic: Media Technologies SubTopic: Audio Tags:
4w
Reply to Xcode not recognizing GPT Plus subscription
This is a known issue in the wording of the error message in Xcode 26.0 and 26.0.1 that makes it sound like Xcode does not have your ChatGPT Plus account logged in. If you want us to double check that the number of actual requests is within your limit, please file a feedback request with a sysdiagnose and say I was asked on the forums to file this to double check my limits
4w
iOS26 captive portal detection changes?
Hi all, I work on a smart product that, for setup, uses a captive portal to allow users to connect and configure the device. It emits a WiFi network and runs a captive portal - an HTTP server operates at 10.0.0.1, and a DNS server responds to all requests with 10.0.0.1 to direct any and all request to the server. When iOS devices connect, they send a request to captive.apple.com/hotspot-detect.html; if it returns success, that means they're on the internet; if not, the typical behavior in the past has been to assume you're connected to a captive portal and display what's being served. I serve any requests to /hotspot-detect.html with my captive portal page (index.html). This has worked reliably on iOS18 for a long time (user selects my products WiFi network, iOS detects portal and opens it). But almost everyone who's now trying with iOS26 is having the automatic pop up behavior fail - usually it says Error opening page - Hotspot login cannot open the page because the network connection was lost. Howe
0
0
137
4w
Reply to PushToTalk
PTTManager This is my PTT code 1: Click on the intercom button and Bluetooth device button on the PushToTalk interface. The recording all starts in this method (channelManager: PTChannelManager, didActivate AudioSession: AVAudioSession) 2: There is no problem with recording audio by clicking the intercom button on the PushToTalk interface. But there are problems with clicking on recorded audio on Bluetooth devices (all noise or no sound during playback) 3: The method called after the application switches to the background (setupChannelManager (channelUUID: UUID)) 4: The method called by clicking the Bluetooth button (requestBeginTransmitting()) 5: The above scenarios are all when the application switches to the background (the application has set the background to keep alive and Background Modes) 6: All functions are normal without any issues when the application switches to the frontend.
Topic: Media Technologies SubTopic: Audio Tags:
4w
iOS Speech Error on Mobile Simulator (Error fetching voices)
I'm writing a simple app for iOS and I'd like to be able to do some text to speech in it. I have a basic audio manager class with a speak function: import Foundation import AVFoundation class AudioManager { static let shared = AudioManager() var audioPlayer: AVAudioPlayer? var isPlaying: Bool { return audioPlayer?.isPlaying ?? false } var playbackPosition: TimeInterval = 0 func playSound(named name: String) { guard let url = Bundle.main.url(forResource: name, withExtension: mp3) else { print(Sound file not found) return } do { if audioPlayer == nil || !isPlaying { audioPlayer = try AVAudioPlayer(contentsOf: url) audioPlayer?.currentTime = playbackPosition audioPlayer?.prepareToPlay() audioPlayer?.play() } else { print(Sound is already playing) } } catch { print(Error playing sound: (error.localizedDescription)) } } func stopSound() { if let player = audioPlayer { playbackPosition = player.currentTime player.stop() } } func speak(text: String) { let synthesizer = AVSpeechSyn
0
0
96
4w
App Store Connect Distribution - Disabled due to Agreement Update
Hello, I am trying to create a new distribution version in the App Store connect but keep on getting a pop-up prohibiting me from doing so because it says I have to agree to an updated agreement on the Apple Developer website. When I visit the account settings in the Apple Developer website there is no agreement for me to select and agree to. Please help. Pics attached.
1
0
74
4w