A turn-on luminescence probe based on amino-functionalized metal-organic frameworks for the selective detections of Cu2+, Pb2+ and pyrophosphate.