1. Marcin Jurkowski
  2. PowerServer Mobile (Obsolete)
  3. Tuesday, 29 May 2018 13:52 PM UTC

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

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 29 May 2018 14:01 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # Permalink

Hi Marcin;

   The new RESTful web services in PB2017R2 are not supported in PowerServer  Web/Mobile.

Support for RESTful web services is being considered for PowerServer 2018 due out later this year.

Regards ... Chris

Comment
  1. Marcin Jurkowski
  2. Tuesday, 12 May 2020 08:36 AM UTC
Hi Georgios,



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
  1. Helpful
  1. mike S
  2. Tuesday, 12 May 2020 16:47 PM UTC
PowerServer 2020 supports HTTPclient for both mobile and web.

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.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 12 May 2020 19:52 PM UTC
Mike is exactly right!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.