question

morenoh149 avatar image
morenoh149 asked morenoh149 commented

App Permissions are for device information or api information?

I'm studying https://docs.clover.com/clover-platform/docs/permi...

I was told that to build a custom tender I would have to access the Order information and request the Order Read permission on the Edit app screen described at https://docs.clover.com/clover-platform/docs/worki...

Now I'm confused. Would the android clover app be reading order information from the local device or the clover REST api?
Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered morenoh149 commented
App permissions are enforced both on the device and at REST endpoints.

In most cases you'll prefer using OrderConnector from the SDK to retrieve and update order information. That's going to be the most up to date. If you are running on the device and get order information from the server you run the risk of the data being out of sync. For example, if you POSTed a change to an order through the REST API, that won't be reflected locally on the device to other applications until the device gets around to syncing the data.
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

morenoh149 avatar image morenoh149 commented ·

Ok so it sounds like there is the Order read permission. But order information can be read in two ways:

1. locally via the OrderConnector in the clover-android-sdk

2. over HTTP against clover's REST api

I think I'll go with the first as you suggest as I'm building a custom tender that is launched from the Sale app.

0 Likes 0 ·

Welcome to the
Clover Developer Community