Pass the app to the callback.