- 
                Notifications
    
You must be signed in to change notification settings  - Fork 423
 
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hello,
An error appears when I try to set the plugin @capacitor/motion.
To reproduce
Steps to reproduce the behavior:
- Install an blank ionic project + add 
wwwand ìos` - Install the plugin using these commands: 
npm install @capacitor/motionnpx cap sync - Open the file 
app.component.ts - Add the imports on the top of the file
 - In the function 
ngOnInit(), add the method to request the permission `await DeviceMotionEvent.requestPermission();`` - See the error (red underline below 
requestPermission):Property 'requestPermission' does not exist on type '{ new (type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; prototype: DeviceMotionEvent; }' 
Expected behavior
Don't have any error when I try to setup the plugin following the instructions.
Browser and OS (please complete the following information)
- OS: MacOs Monterey 12.6
 - Browser: Chrome
 - Version: 105.0.5195.125
 
Thank you for your help,
Loïc
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
