Can you fit ring 2 on the door itself?

Hi all. I have recently bought ring 2 and now having difficulty fitting it. There is no space on both side of the door. Even there is no wall on side to use mounts. I was wondering if it is possible to install it on the door itself. Maybe in the middle. Will this have any problem? Or will all the sensor work?