A synergistic strategy for enhancing U(
A β-ketoenamine based covalent organic framework possesses high crystallinity, good porosity, stability and luminescence properties. It can serve as the first COF-based fluorescent pH sensor in aqueous solutions.