question

coder12 avatar image
coder12 asked Jeffrey Blattman edited

Is there a Clover Authentication for Application running on Non Clover Android Devices

Hi, we are considering development of a new application to introduce in the clover market. The question we had was if there is a way to authenticate an android app with a clover oauth token for placing orders through android devices other than clover? For example, I have a app running on a samsung tab that authenticates your clover merchant account and after authentication, fetches order and other information to display financial information, documents and forms. In this example, the application, although it can be run on a clover device, will run on the samsung tablet and the app needs to get access to the merchant token for fetching data. Clover connector wont work because it is not run on the clover device. Is there a library you provide for android clover authentication similar to the weboauth?

Clover Android SDKclover developer communityOAuthandroid 10
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 Jeffrey Blattman edited

See: https://docs.clover.com/docs/oauth-for-web-views-non-clover-devices

It might not be trivial to make one app that runs in both places. Unless you want merchants to login on Clover devices as well, which would be strange, you'll need to use different auth methods. The Clover Android SDK won't be available on non-Clover devices. You won't be able to use any Google Play services on Clover devices (maybe the SDKs will fail gracefully?).

I think the big problem will be the target SDK level. Google Play now requires you target 30. No Clover device is SDK >29 right now. Moreover, Clover requires you target <26 as some of the SDKs won't work otherwise. See: https://docs.clover.com/docs/release-notes-may-23rd-2019#target-sdk-version-for-uploading-android-apks.

Another approach might be a project with two apps, and some shared code between them and some abstraction layers for accessing Clover data, etc.

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community