Keep and share a ctx variable in app delegate