ios – HealthKit does not show exercise occasion names

[ad_1] I need to write information to AppleHealth from my health app. So I create an HKWorkout pattern, and add exercise occasions there (e.g. Squat, Assisted dip, Barbell Curl). Right here is the best way I create HKWorkoutEvent array var workoutEvents = [HKWorkoutEvent]() var metadata: [String: Any] = [:] workoutEvents = exercise.workoutExercises.map { metadata[HKMetadataKeyWorkoutBrandName] =…

ios – The best way to have higher collision shapes on USDZ objects in RealityKit?

[ad_1] That is how my .USDZ object appears to be like like and it is collision form: It principally simply creates rectangles, and typically these collision shapes overlap one another which makes it arduous to faucet on them. How can I create rounded collision shapes or collision shapes that truly match the thing? That is…

Lacking argument for parameter ‘from’ in name. Insert ‘from <Decoder>

[ad_1] I’ve a struct which verify codable protocol. public struct FlightDTO { public var flightName: String = "" public var PilotName: String = "" public var copilotName: String = "" public var totalCrewMem: Int = 0 } extension FlightDTO: Codable { enum CodingKeys: String, CodingKey { case flightName case PilotName case copilotName case totalCrewMem }…

android – If I construct an SDK, is it mandatory that I implement certificates pinning?

[ad_1] Most, if not all, articles state that certificates pinning is essential for apps. Nonetheless, there may be not a lot dialogue whether or not it’s essential to implement it in case you are creating your SDK and merchandising it for others to make use of. Some questions come to thoughts If I add certificates…

swift – iOS background activity fails to run

[ad_1] I’m attempting to create a background activity whereby my app contacts an API endpoint each quarter-hour and if the response accommodates a sure worth the background activity will show an area notification. My app is rarely contacting the API endpoint, which leads me to imagine the background activity is rarely working. The API is…

-[AVAssetWriterInput markAsFinished] Can’t name technique when standing is 0′ digital camera file Swift iOS

-[AVAssetWriterInput markAsFinished] Can’t name technique when standing is 0′ digital camera file Swift iOS

[ad_1] I am utilizing AVAssetWriterInput to file video however after I wish to cease recording I am getting this error solely 1/10 instances. -[AVAssetWriterInput markAsFinished] Can’t name technique when standing is 0′ Right here is the cease technique : func stopRecording(completion: ((String?)-> Void)? = nil) { sessionQueue.async { [self] in guard let captureSession = self.session,…

Shared HealthKit integration in Xcode for iOS and WatchOS

[ad_1] possibly you’ll be able to assist me with the next matter: I’ve developed an iOS app with HealthKit integration. All entry rights to HealthKit are arrange within the data.plist file. I wished to combine additionally a watchOS half into the identical venture as a standalone app. After I combine HealthKit into the watchOS half…

ios – Undefined Symbols Utilizing Structure z86_64 XCode (AppDelegate.h file)

[ad_1] The error beneath is presently what I’m going through. libExpoModulesCore.a is the file linked to incorporate ExpoModules performance. Earlier than I added this file to “Hyperlink Binary with Libraries” below Construct Phases below the app goal, I acquired 15+ errors associated to UndefinedSymbols within the ExpoModules pod information. Undefined symbols for structure x86_64: “_OBJC_CLASS_$_RCTRootView”,…

ios – SwiftUI – Dismiss modal after navigating by a number of screens

[ad_1] I’ve a stream that’s initially offered like this: let vc = UIHostingController(rootView: SomeRootView()) vc.modalPresentationStyle = .fullScreen current(vc, animated: true) From that view/display screen, I can dismiss it by way of self.presentationMode.wrappedValue.dismiss() Nevertheless, after navigating by a number of screens in that stream utilizing this type of factor: NavigationLink(vacation spot: SomeOtherView(), isActive: $viewModel.shouldProceed) { EmptyView()…

Would Firebase Messaging work nicely for managing recipients/visibility of person posts on Swift/ios App?

[ad_1] What I am constructing I am constructing an ios app with Swift and have adopted Google Firebase merchandise for lots of issues like authentication. My app will enable customers to make posts that different customers see, just like Fb. Whether or not different customers can see a put up is determined by settings configured…

ios – Swift URL Session Response will get corrupted when utilizing ‘&’ image

[ad_1] I’m growing iOS app, I’m utilizing URL Session methodology for make API calls. Api response provides one property which accommodates AWS s3 hyperlink for pdf doc. What ought to occur: So on this app, I’m retrieving a PDF doc from the server to view within the app, so within the GET URL that I…

ios – Swift: Acknowledge speech from microphone whereas audio performs within the background

[ad_1] I need my app to acknowledge speech from the microphone and permit audio within the background to maintain taking part in. My app acknowledges speech coming in by the microphone and converts it to textual content. When my app launches it shuts down any audio taking part in within the background. Is it doable…

ios – Can I open Common Hyperlinks and/or Android App Hyperlinks from throughout the cellular app that I need to launch?

[ad_1] I am making an attempt to check a movement that appears as follows: From inside my cellular app, open a browser. Observe that it is a browser hosted in the app (ex: internet view), and the browser launched exterior to the app. The browser then redirects again to my app utilizing both a Common…

New Options at raywenderlich.com — September 2022 Replace

[ad_1] Take advantage of out of your time with raywenderlich.com — take a look at the latest website options created only for you! It looks like simply yesterday we had been shopping for our fourth pair of sun shades (the place do they disappear to?!) and now we’re placing the ice tea away for hurricane preparations!…

android – Take away white area/padding on drag in ReorderableListView

[ad_1] it is a follow-up of this query. I am getting some white area after I drag the listing merchandise to reorder it. How can I do away with the white spacing whereas preserving the EdgeInsets between listing components? That is how the white spacing seems like when reordering the merchandise: And that is my…

Widget Testing With Flutter: Getting Began

[ad_1] On this tutorial about Widget Testing with Flutter, you’ll learn to guarantee UI widgets look and behave as anticipated by writing check code. Replace word: Stephanie Patterson up to date this tutorial for Flutter 3.3 and Dart 2.18. Lawrence Tan wrote the unique. Testing is essential throughout your app improvement. As your product grows,…

State Restoration in SwiftUI | Kodeco, the brand new raywenderlich.com

[ad_1] Discover ways to use SceneStorage in SwiftUI to revive iOS app state. In virtually any app possible, some state might be outlined by actions the consumer has taken — the tab the consumer final chosen, the objects the consumer added to a basket or the contents of a draft message. It could be complicated…

ios – Aircraft entity’s grounding shadow flicking in RealityKit

[ad_1] I created a airplane with unlit materials with png texture, and I would like use it as an indicator to point out customers the place to place fashions within the scene. But when the grounding shadow is enabled, the airplane is flickering with shadow and appears actually bizarre. If the grounding shadow is disabled…

Outcomes Are In – State of Cellular Jobs Survey 2022!

[ad_1] See the way you evaluate to your cell developer friends by viewing the outcomes of our State of Cellular Jobs Survey 2022! Earlier this 12 months, we began a challenge model new to us: A survey designed to demystify what cell builders are value on the job market, primarily based on actual knowledge —…

ios – Faucet wherever so as to add a number of objects on canvas

[ad_1] You solely have a singular location, so just one merchandise will ever seem in your instance. To have a number of objects, you will want some kind of assortment, like an Array. The next is a pared-down instance exhibiting utilizing an array: struct Hammer: Identifiable { var id = UUID() var location: CGPoint }…

App Shortcuts: Getting Began | Kodeco, the brand new raywenderlich.com

[ad_1] Learn to implement App Shortcuts in your Android app to make it extra partaking in your customers. Most of the mostly used apps devour App Shortcuts to offer customers with easy accessibility to its most vital options. For instance, Instagram supplies shortcuts to Digital camera, New Publish, View Exercise, and Direct messages, whereas WhatsApp…

swift – WKWebView iOS 16 Internet Share API on file: protocol

[ad_1] I’m making an attempt to make use of navigator.share in a file operating in WKWebView on iOS 16. The file is loaded into the online view utilizing a file: protocol path like so: uiView.loadFileURL(Bundle.fundamental.url(forResource: “index”, withExtension: “html”, subdirectory: “internet”)!, allowingReadAccessTo: Bundle.fundamental.bundleURL) I’ve this setting on: configuration.preferences.setValue(true, forKey: “allowFileAccessFromFileURLs”) So I’m able to load file:…

Jetpack Compose | Kodeco, the brand new raywenderlich.com

[ad_1] Requires a professional subscription Professional Oct 11 2022 Kotlin 1.7.10, Android 13, Android Studio Chipmunk Model historical past Android 13, Kotlin 1.7.10, Android Studio Chipmunk (Chosen) Oct 11 2022 Android 11, Kotlin 1.4, Android Studio Canary (Arctic Fox Launch) Jul 8 2021 Android 11, Kotlin 1.4, Android Studio 4.2 Oct 22 2020 On this…

Change app icon programmatically in react-native. How can I modify the app icon on the clicking of button in react-native ( iOS and android each )

[ad_1] How can I modify the app icon on the clicking of button in react-native ( iOS and android each ) @ReactMethod public void setDefaultIcon(Promise promise) { String defaultPackageName = “NOT_FOUND”; attempt { WritableMap map = Arguments.createMap(); defaultPackageName = appContext.getPackageName() + “.MainActivity”; String newPackageName = defaultPackageName + “Alias”; // allow outdated icon PackageManager supervisor =…

Android Accessibility by Tutorials | Kodeco, the brand new raywenderlich.com

[ad_1] Accessibility is a crucial, typically ignored, a part of constructing a high quality app. The Internet Content material Accessibility Pointers (WCAG) will be complicated and it’s typically unclear tips on how to apply these pointers to Android. On this guide, you’ll find out about constructing accessible apps on Android utilizing WCAG by hands-on, step-by-step…

swift – Personal Cocoapod not operating on iOS simulator – Undefined symbols for structure x86_64

[ad_1] I’m utilizing M1 machine and the app is runnable on actual system, however exhibiting this points on iOS simulator. Personal pod is hosted on separate non-public github repo. There’s simply an Xcframework file which is focused by podspec file which seems to be like this: There’s ton of errors, right here is few of…

How you can Reverse Engineer a Unity Sport

[ad_1] On this tutorial you’ll use ILSpy and AssetStudio to extract code and property from a compiled Unity sport. Within the context of software program, reverse engineering is the follow of analyzing a system to extract design and implementation info. That is typically used to higher perceive how software program capabilities. One technique of reverse…