The performance of an NH 3 sensor featuring MAPbBr 3 as the luminescent core is enhanced with the introduction of an AIE material through FRET and defect passivation, enabling this nanofiber-based NH 3 sensor to achieve high sensitivity and stability.