iOS 12.4.6, iPhone6 physical shake isn't detected

Hi,

In my app I have VC where shake is handled, i.e motionBegan.... , motionEnded are handled.


Now, after updating iPhone 6 until iOS 12.4.6 I see that physical shake isn't detected.

However, when I am using Assistant Touch on device or "shake key" in the simulator, it works fine.


I even created a sample project (Link on dropbox)


Here is VC:


class ViewController: UIViewController {
   override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)    
        let result = becomeFirstResponder()
        assert(result && isFirstResponder)
    }
   
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        resignFirstResponder()
    }
   
    override var canBecomeFirstResponder: Bool {
        return isViewLoaded && view.window != nil
    }
   
    override func motionBegan(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
        super.motionBegan(motion, with: event)
        guard motion == .motionShake else { return }
        debugPrint("Motion began !!!")
    }
   
    override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
        super.motionEnded(motion, with: event)
        guard motion == .motionShake else { return }
        debugPrint("Motion motionEnded !!!")
    }
}


Seems that it's a bug, isn't it?

iOS 12.4.6, iPhone6 physical shake isn't detected
 
 
Q