Hi,
I'm testing usage of the RESTClient in PB2017 and I wanted to use it on a mobile app deployed to PowerServer.
I created a simple app with one window and one datawindow to use it for GET request as per your recent webinar.
Code in open event:
RESTClient rest
rest = CREATE RESTClient
rest.retrieve(dw_1,"http://jsonplaceholder.typicode.com/posts")
When I run the app in PB it works ok.
When I deploy the app to EXE it works ok.
When I deploy the app to PowerServer and run it on my mobile phone (iOS and Android) then nothing happens.
Do I need something extra for the mobile app?
Marcin
no, it would be too long to wait for possible Appeon updates so when Appeon Mobile doesn't tick all requirements we're using Xamarin.Forms for apps (it's C# and has all you may want for mobile apps, plus often updates which are important for mobile development).
I think that HTTPClient is now available in PowerServer 2019 (although it would be good to have an option to choose between RESTClient and HTTPClient)?
I don't know what you want to achieve but maybe it'll be suitable for your requirements.
Regards,
Marcin
that means you CAN access REST apis in mobile
remember that the REST object is limited to 2 levels of data so if you have an api that is sending back somewhat complex data you might need to use HTTPclient anyway. the only thing the rest api gives you is easy connection to a datawindow.