I'm making a Cordova app and I need to get a wordpress website's postIDs. I've done some research and found that I should use the built-in url_to_postid function. However, since this is a cordova app I am unable to run PHP.
I was thinking of using the URL and requesting the postID from the page, however, I'm not sure how to do that, if it's even possible.
If you're looking to interact with a WP instance from a cordova app, then perhaps you should look into connecting to the WP instance via the REST API to get those kind of details.
Hope this helps :)