On App Installation, I triggered an API and stored some data using Key-Value storage using the $db.set method. (in server.js)
Now I also have a UI component which reads the Keys, gets the value. I am able to read and get the value in local testing but when I submit it as a custom app, the app is not able to read those keys in app.js
There is an issue with your app.js code.
you have used a different key to fetch from DB in your app.js
which is not the same one in your server.js file