44
Views
4
Comments
When the mobile app needs to remain online ?

When the mobile app needs to remain online ?

  1. Navigating to other screen

  2. Calling Screen action

  3. User role check

  4. Query from local storage

mvp_badge
MVP
Rank: #76

Hi Mahesh,

Everytime the mobile app executes a server action, it needs to be online in order to do so, since server actions are being converted into REST endpoint by the platform. The REST endpoints are being called from the client side everytime the mobile app needs to execute a server action.

CheckRole actions are also server side actions and therefore the mobile app will be forced to be online in order to execute user role checks.

Regards,

Nordin

Rank: #90

Hi Mahesh,

answer should be- User role check

role-checking mechanics would force the app to be online every time a role-check is performed, as your app would be calling a REST endpoint on the server. 

 

find below link for help

https://www.outsystems.com/forums/discussion/56871/can-i-use-checkrole-action-in-offline-mode/ 

https://www.outsystems.com/forums/discussion/26565/define-role-access-to-a-mobile-app/

https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/JavaScript_API 

https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/JavaScript_API/Security 


Regards

Rahul Sahu

mvp_badge
MVP
Rank: #19

Regarding checking a user role this is possible to do offline!

See https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/JavaScript_API/Security#checkifcurrentuserhasrole 

This is an offline check, this is of course not 100% sure as client code can be easily tempered, but it does allow you to check if a user has a role while offline.

Regards,

Daniel

mvp_badge
MVP
Rank: #19

Hi Mahesh, 

Not an answer but a question here? You posted several like "exam style" questions in the forum today.

What is it you try to achieve, do you have an actual problem that you want to solve?

Most of the questions can easily be answered by googling them. All the information is in official OutSystems documentation.

Regards,

Daniel