core-motion Questions
3
EDIT: This appears to be resolved on iOS 13. Leaving all the original details below.
I'm getting a crash when instantiating my CMMotionManager object for Core Motion. This is on an iPhone Xs runni...
Pythagorean asked 24/10, 2018 at 23:27
6
Solved
I'm trying to detect three actions: when a user begins walking, jogging, or running. I then want to know when the stop. I've been successful in detecting when someone is walking, jogging, or runnin...
Prologize asked 22/2, 2014 at 17:16
3
Solved
I receive a CMLogItem from a CoreMotion query in swift (could be accelerometer, gyroscope). Now, I want to get the timestamp of that sample, preferably as a Date() object. CMLogItems have a propert...
Prelusive asked 11/11, 2018 at 16:10
5
While running an ARKit session with world tracking enabled, the Xcode console shows log messages about (I presume: reduced) tracking performance, even though
The AR Session is in Normal tracking s...
Jug asked 4/8, 2017 at 16:44
4
Solved
Since recently, I get in the Xcode logs a lot of strange warnings from the CoreMotion framework, related to function getLocationForBundleID:
[Client] {"msg":"#NullIsland Either the l...
Ludwigshafen asked 22/11, 2020 at 9:42
2
The issue that I'm running into is that when a user takes a photo with our app, using AVCaptureSession, I have no way of determining whether they took the photo in Portrait or Landscape mode. Our a...
Zebadiah asked 22/5, 2014 at 16:19
5
Solved
If an app requires access to Motion Activity data it asks the user at install. However if the user accidentally answers 'No', then the app will not work.
I am looking for a way to check if the Mot...
Tamper asked 8/1, 2014 at 20:37
2
Solved
I'm trying to capture frames from camera and associated motion data.
For synchronization I'm using timestamps. Video and motion is written to a file and then processed. In that process I can calcul...
Fishgig asked 8/2, 2017 at 14:50
1
Solved
I am trying to display the accelerometer data in a SWIFTUI view. This code works to print to the console, but I can't understand how to get it inside a view so I can use it in SWIFTUI.
import Swi...
Yulandayule asked 26/5, 2020 at 10:46
3
Solved
I am currently in the Process of building my first iOS Swift app, with this app I want to perform an action while the app is running in the background.
The action needs to be performed once the us...
Hyperventilation asked 3/6, 2015 at 12:12
3
Solved
I want to get the current iOS device orientation even if device's orientation is locked. (Just like iOS Camera app)
I want to detect Portrait, Landscape Left and Landscape Right at least.
UIDevic...
Pentobarbital asked 8/3, 2018 at 2:15
2
Solved
I am having trouble outputting the data for the magnetometer, accelerometer and gyroscope using Core Motion with SwiftUI. I'm assuming my problem has something to do with the startMagnetometerUpdat...
Tingaling asked 13/10, 2019 at 18:56
4
Solved
I'm a newbie on swift and WatchKit framework.I'm studying this from only a month.Now my question is:is possible running an app in background mode on the apple watch?I read from the documentation th...
Prerequisite asked 2/3, 2017 at 10:6
2
Solved
I want to detect device shake using coreMotion framework for iOS 7. Can anyone help me out how to do this ?
I wrote code described below in my viewDidAppear
CMMotionManager *motionManager = [[CM...
Testamentary asked 23/6, 2016 at 6:32
1
Solved
The following is an extremely simplified version of the issue:
import UIKit
import CoreMotion
class ViewController: UIViewController {
private let manager = CMMotionManager()
private let interv...
Theft asked 9/2, 2019 at 15:47
1
At some point in my app I am initializing a CMMotionManager. This happens on the main thread. After doing so, the Xcode 10 main thread checker indicates that
-[UIApplication applicationState]
...
Damato asked 20/11, 2018 at 17:35
3
Solved
I'm a fairly new app dev and very new to Sprite Kit. I am creating a game where I want a ball to always fall downward as if it were in gravity. This is just a 2d app so all I want is when the ball ...
Bulla asked 27/3, 2014 at 20:39
1
I'd like to know if the system can wake an application in the background if the CMMotionActivity changes, for example, if the user starts walking/running after sitting, I'd like to be able to execu...
Lepto asked 3/1, 2015 at 8:34
1
Solved
I'm actually trying to put a 3D Object on QRCode with ARKit
For that I use a AVCaptureDevice to detect a QRCode and establish the area of the QRCode that gives me a CGRect.
Then, I make a hitTest o...
Epiblast asked 13/7, 2017 at 20:54
1
I'm trying to detect Automotive ActivtyType, however the problem is if "I go on a drive and then stop the car and stay in the car" and simply check the coreMotion logs: I would continue to get nume...
Synchroscope asked 9/8, 2017 at 15:22
2
I am trying to record the data from the iPhone's accelerometer (my own iPhone 5s) and set a label on the screen to that data using String(format: "%.2f", data) where data is the value for the speci...
Dysteleology asked 4/1, 2015 at 18:9
4
Solved
I want to get the authorization status for CMMotionActivityManager. For other services like calendar and location we have some property in the API that gives us the user authorization status for th...
Construction asked 29/4, 2014 at 9:15
5
Solved
I use Core Motion's sensor fusing to get north oriented motion updates:
[motionManager startDeviceMotionUpdatesUsingReferenceFrame:CMAttitudeReferenceFrameXTrueNorthZVertical toQueue:motionQueue w...
Chelonian asked 2/1, 2013 at 11:21
2
Solved
Hi I want to identify the iPhone SHAKE when user shakes their phone, either in background mode or in foreground mode of the app.
Please assist me.
Thanks in advance.
Kress asked 23/11, 2017 at 6:10
2
I am making an App which able to make panorama video in landscape. In landscape, it supports two directions: left to right and bottom to top.
So I want to move an arrow from left to right when use...
Domiciliate asked 4/11, 2017 at 9:8
1 Next >
© 2022 - 2025 — McMap. All rights reserved.