Post

Replies

Boosts

Views

Activity

Battery level of a bluetooth classic device in iOS
I need to access the battery level of a bluetooth classic (not Bluetooth Low Energy) device, for example, of a bluetooth headphone or headset.I know this information is available to iOS throught AVFoundation framework - AVOutputDevice interface - batteryLevel property. See https://github.com/nst/iOS-Runtime-Headers/blob/master/Frameworks/AVFoundation.framework/AVOutputDevice.hIs it possible? How?
2
0
1.1k
Jul ’17
application(app,open,options) not being called when used with @UIApplicationDelegateAdaptor
Hi there! My SwiftUI app uses @UIApplicationDelegateAdaptor to implement an AppDelegate class and I need its delegate method application(app,open,options) to be called when my Widget is tapped by the user (I'm using a small Widget with widgetURL modifier attached to its view). The problem is: application(app,open,options) entry point in my AppDelegate class is never called. Just for information, application(application,didFinishLaunchingWithOptions) works fine. I've added an info.plist entry to link my app to an specific URL scheme: <array> <dict>             <key>CFBundleURLSchemes</key>             <array>                 <string>myAppBundleId</string>             </array>             <key>CFBundleURLName</key>             <string>recorder</string> </dict> </array> This is the widgetURL modifier attached to the view:                 RecorderWidgetView()                     .widgetURL(URL(string: "recorder://zap")!) And this is the app delegate method that I would like to be called but it's not being called:     func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {         return true } Is there something else I should do? Thanks.
3
0
2.0k
Aug ’20
AppStoreConnect API - Error 404 when fetching build icon
Hi folks! After fetching all icons for all builds (v1/builds/{id}/icons) which returns an array of BuildIcon, I can't fetch any icon that comes inside the response. I'm using the attributes->iconAsset->templateURL as URL of the icon I want to retrieve, but I'm getting 404 for all of them. Every URL has the following prefix: https://is4-ssl.mzstatic.com/image What am I doing wrong here? Any help will be much appreciated. Thanks!
2
0
1.2k
Apr ’23
.widgetURL modifier and interactive widgets co-existence in iOS17
Can someone tell me how to handle the conflict between the .widgetURL modifier and the interactive widget in iOS 17? The .widgetURL makes all widget tapable, meanwhile interactive widget allows for tapping a button/toggle in a specific location inside the widget. I want to mix the two: the .widgetURL modifier and the interactive widget, but right now when .widgetURL is set, the button/toggle of interactive widget doesn't work. Running Xcode 15 beta 1 with iOS 17 on Simulator. Any help is appreciated. Thanks!
0
0
489
Jun ’23