Thoroughly clean off all of the soap scum and wait for the surface to dry (otherwise, the bond might fail). Apply a strip of foam tape on each mounting flange, stopping one inch short of the ends.
A standard shower curtain rod is easy enough to install, sure. But things get decidedly trickier when you're dealing with a corner shower or bath. The solution is a shower curtain rod with a bend ...