Positive solutions to Schrödinger equations and geometric applications