AlGaN-based solar-blind ultraviolet avalanche detectors have huge potentials in the fields of corona discharge monitoring, biological imaging, etc. Here, we study the impact of the heterojunction polarization-related effects on the AlGaN-based solar-blind ultraviolet avalanche detectors. Our work confirms that the polarization heterojunction is beneficial to reducing avalanche bias and lifting avalanche gain by improving the electric field in the depletion region, while the polarization-induced fixed charges will lead to a redistribution of the electrons, in turn shielding the charges and weakening the electric field enhancement effect. This shielding effect will need external bias to eliminate, and that is why the polarization heterojunction cannot work at relatively low bias but has an enhancement effect at high bias. Controlling the doping level between the hetero-interface can affect the shielding effect. An unintentionally doped polarization heterojunction can effectively reduce the shielding effect, thus reducing the avalanche bias. The conclusions also hold true for the negative polarization regime. We believe our findings can provide some useful insights for the design of the AlGaN-based solar-blind ultraviolet detectors.