question

nassiralawar avatar image
nassiralawar asked Bryanne Vega edited

Bringing an app to the front.

Hello,

I'm responding to a Barcode (QR) Scan as a broadcast receiver. If a user scans a QR code that contains our URL I would like to be able to bring our app to the foreground. Is there a way to handle this from a broadcast receiver in the Clover/Android platform?

Regards,
Nassir
Clover Android SDK
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

Bryanne Vega avatar image
Bryanne Vega answered Bryanne Vega edited
Implement a broadcast receiver that grabs the QR code data, pass it along your activity by calling startActivity() and you should be good to go.

Be sure to check out the SDK example over here and on line 51 is where you should call your activity.
10 |2000

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