One of the apps (and its data) doesn't restore from iCloud. How to fix?

My specific situation was that initially I tried a backup version that was too late to contain the app required. Once I switched to an earlier backup, the app was there and successfully restored with all its data.