The app, which will operate on an opt-in basis, will be released either just before or just after the lockdown is lifted.