Post

Replies

Boosts

Views

Activity

Reply to Is there an API to get the iOS Rapid Security Response version?
Here you go: May the 9th be with you! Getting the suffix information is walled by private APIs. The only way to get it is to use the string version of process info and probably perform a regex to extract and other string fun stuff. Sean! import Foundation class VersionModel: ObservableObject { init() {} @Published var value: String = { let process = ProcessInfo.processInfo.operatingSystemVersionString return process }() } import SwiftUI struct ContentView: View { @EnvironmentObject var model: VersionModel var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Text("Version \(model.value)!") } .padding() } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() .environmentObject(VersionModel()) } } import SwiftUI @main struct VersionInfoApp: App { @StateObject var model = VersionModel() var body: some Scene { WindowGroup { ContentView() .environmentObject(model) } } }
Topic: Programming Languages SubTopic: Swift Tags:
May ’23
Reply to WatchOS Notifications Firing Late
iOS decides if to forward the notification to a >connected watch< based on a number of factors such as does the watch have it's own token in order to get messages directly etc. https://developer.apple.com/documentation/watchos-apps/taking-advantage-of-notification-forwarding?changes=_9 https://developer.apple.com/documentation/watchos-apps/notifications?changes=_9 https://developer.apple.com/documentation/watchos-apps/enabling-and-receiving-notifications?changes=_9
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Reply to Detecting VPN Usage in iOS
Regardless of the application being developed by whom, knowing what applications or services are running outside your sandbox is a privacy overreach. Stick to jailbreak detection and debugger attachment checks to terminate your application accordingly.
Topic: App & System Services SubTopic: Core OS Tags:
May ’23
Reply to Mac M2 pro libusb read/write performance
Try the test functions from this snippet and see if the outcome is the same: https://android.googlesource.com/platform/external/libusb/+/HEAD/examples/xusb.c https://cpp.hotexamples.com/examples/-/-/libusb_control_transfer/cpp-libusb_control_transfer-function-examples.html https://github.com/Codingboy/ucuni/blob/master/src/example.c
Topic: App & System Services SubTopic: Drivers Tags:
May ’23
Reply to Animated blueprint of Solid-State Lithium Metal Battery
This is not github
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Is there an API to get the iOS Rapid Security Response version?
Here you go: May the 9th be with you! Getting the suffix information is walled by private APIs. The only way to get it is to use the string version of process info and probably perform a regex to extract and other string fun stuff. Sean! import Foundation class VersionModel: ObservableObject { init() {} @Published var value: String = { let process = ProcessInfo.processInfo.operatingSystemVersionString return process }() } import SwiftUI struct ContentView: View { @EnvironmentObject var model: VersionModel var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Text("Version \(model.value)!") } .padding() } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() .environmentObject(VersionModel()) } } import SwiftUI @main struct VersionInfoApp: App { @StateObject var model = VersionModel() var body: some Scene { WindowGroup { ContentView() .environmentObject(model) } } }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to ESP32 Bluetooth Advertisement
For questions about using Apple hardware and services, visit Apple Support Communities ›
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to WatchOS Notifications Firing Late
iOS decides if to forward the notification to a >connected watch< based on a number of factors such as does the watch have it's own token in order to get messages directly etc. https://developer.apple.com/documentation/watchos-apps/taking-advantage-of-notification-forwarding?changes=_9 https://developer.apple.com/documentation/watchos-apps/notifications?changes=_9 https://developer.apple.com/documentation/watchos-apps/enabling-and-receiving-notifications?changes=_9
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Core Midi sending wrong usb packets on MacOS 13.3.1
Then you will most likely need to update your applications if Apple has addressed issues in the API.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to App with haptics crashes on iPhone6
You will have to assess if haptics is supported on your target platforms.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Core Midi sending wrong usb packets on MacOS 13.3.1
Creating a feedback ticket with a sample app and the observations above might be best.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Core Midi sending wrong usb packets on MacOS 13.3.1
Creating a feedback ticket with a sample app and the observations above might be best.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to No push notifications are shown.
Is this a phone-and-watch scenario?
Replies
Boosts
Views
Activity
May ’23
Reply to Detecting VPN Usage in iOS
Regardless of the application being developed by whom, knowing what applications or services are running outside your sandbox is a privacy overreach. Stick to jailbreak detection and debugger attachment checks to terminate your application accordingly.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Trailing closure passed to parameter of type 'FormStyleConfiguration' that does not accept a closure
See here: https://developer.apple.com/documentation/swiftui/form
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Mac M2 pro libusb read/write performance
Try the test functions from this snippet and see if the outcome is the same: https://android.googlesource.com/platform/external/libusb/+/HEAD/examples/xusb.c https://cpp.hotexamples.com/examples/-/-/libusb_control_transfer/cpp-libusb_control_transfer-function-examples.html https://github.com/Codingboy/ucuni/blob/master/src/example.c
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Unable to enable my system extension due to Falcon.
Please post your questions here: https://discussions.apple.com/welcome or contact the respective vendors for a fix.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Unreal Engine 4.27 IOS build with entitlement 'Increased Memory Limit'
Please get in touch with the developers of the Unreal Engine SDK. This is not an Apple Product.
Replies
Boosts
Views
Activity
May ’23
Reply to webView:decidePolicyForNavigationAction:decisionHandler: -- decisionHandler cannot be called asynchronously
No, this is a developer error on your part. You must call the completion handler, passing it a value before the function returns. Please provide a copy of you're calling the handler.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23