question

aravindanr avatar image
aravindanr asked aravindanr commented

How to show a dialog when starting an order?

How to show a dialog when starting the order screen, just like this app "Customer Add" or "Perka"?

I think it's possible, since other apps are doing it, but i couldn't figure out how to do it based on the documentation?

Examples: https://www.clover.com/appmarket/apps...

https://www.clover.com/appmarket/apps...

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

Jacob Abrams avatar image
Jacob Abrams answered aravindanr commented

This is possible through use of a BroadcastReceiver. If you declare a receiver in your AndroidManifest.xml for the action "clover.intent.action.V1_ORDER_BUILD_START"you should receive an Intent with an order ID extra. Once you receive the broadcasts you can start an activity in your app which has the appearance of a dialog. Check http://www.stackoverflow.com for how to make an activity look like a dialog.

See https://github.com/clover/clover-andr... for a list of all the broadcasts and extras sent by Clover that you can register for.

4 comments
10 |2000

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

Thanks. That was helpful. This is a general question. Does Clover SDK include themes and styles to make third party apps look more like a Clover app?

0 Likes 0 ·

You are welcome, don't forget to click the check mark next to the answer so we know this ticket is taken care of. We do not currently offer our styles to 3rd party apps.

0 Likes 0 ·

What is the difference between clover.intent.action.ACTIVE_REGISTER_ORDER and clover.intent.action.V1_ORDER_BUILD_START?

0 Likes 0 ·

They are very similar, there are minor differences, both are sent by the register app although V1_ORDER_BUILD_START could eventually be sent by other apps that build orders. ACTIVE_REGISTER_ORDER should be sent a little less frequently. Best bet is to play with the register app to get a feel for when they are sent.

0 Likes 0 ·

Welcome to the
Clover Developer Community