Highly cat dependent. Our cat knows “no” so when she keeps doing something, we spray her. She still cuddles us in bed and meets us at the door.
The main thing was jumping on the coffee table. I think it also helps that our table lifts up, and we let her jump on the in between part, so she sees it as a treat.
It’s so easy, even on iOS. Just tap share and add to Home Screen. It’s probably just as easy on android.