How to get rid of ios "Undo typing" when you shake the device?

On an ios device, when I shake the phone, I get an “Undo Typing” dialog. I’ve tried the following…

 window.addEventListener('devicemotion', e => {            

but this does not seem to remove it.

Does anyone have any other ideas on how to get rid of it?

Thanks in advance!

A bit more searching and I found this has already be addressed here.

I installed the plugin and seems to work.

how did you use cordova-plugin-ios-disableshaketoedit?

I’ve installed it with:
ionic cordova plugin add cordova-plugin-ios-disableshaketoedit

Is this enough?

Thank you


Yes that is what I ran