abhishek oh okay so your data isn't visible to guests.
You either need to make it accessible to guests, or use authentication with a user allowed to see it. How to pass the correct authentication header is shown here https://discuss.flarum.org/d/9107-using-the-api/3
If you're embedding the user token in the app, make sure it's well locked down and can't be used for anything else, because users can use this token to make any action the user can do via the interface. If your app is publicly downloadable, I'd suggest making the data accessible from guests, or create another PHP script (or a Flarum extension), that will list just this latest data without authentication, by actually doing the authenticated request behind the scene. Or if your app is paid or protected, use a token from the app to authenticate to that script, then let the script relay the data from Flarum with the Flarum auth token.
I hope this explains it.
I'm still not sure what you mean by no data. Can you clarify each time whether no alert appears or whether it appears and confirms you don't get any data ? If there's no modal, you'll need to dig in the debugging tools you have to find which part of the code errors.