After using the code provided about I got the same experience that the control widget opens the app. When I tried adding it on the lock screen of the simulator it still opens the app.
Then I tried it on my iPhone. Placing the button in de control center will still open the app. But using it from the lockscreen opens the camera of included in de Locked Camera Capture Extension
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags: