Rational alloying of secondary and aromatic ammonium cations in a metal-halide perovskite toward crystal-array photodetection