I am working on an AR application for my company, and it runs smoothly, with the exception of one in ten devices. (all iphone 4 and 4s, 5.1.1 +)
When we run this code:
CMDeviceMotion *d = motionManager.deviceMotion; if (d == nil && motionManager.deviceMotionActive && motionManager != nil) { DLog(@"Device motion is active, but no device motion recieved"); }
We get a solid block “Device movement is active, but the device is not received on some devices”, but it seems completely random.
If motionManager.deviceMotionActive true and a motion manager exists, .deviceMotion should return CMDeviceMotion. But it just returns zero.
Does anyone have any ideas what might cause this? Check is done in my
- (void)onDisplayLink:(id)sender
objective-c iphone augmented-reality cmmotionmanager
Nils munch
source share