0

I'm trying to link a click with the app store related to sunmi POS machines. The code below works for Play Store only and crashes on the terminals.

private fun openStore() {
        val intent =
            Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=APP_ID))
        startActivity(intent)
    }

Any special keywords I should add to open the app screen in the store correctly?

Ahmad Albatsh
  • 314
  • 1
  • 2
  • 12
  • 1
    I noticed that the example code differs from the official developer document. You can review the code by following the link below. https://developer.sunmi.com/docs/en-US/cdixeghjk491/qaceghjk502 – viethoang Aug 09 '23 at 07:10
  • @viethoang I looked everywhere for this answer thank you so much – Ahmad Albatsh Aug 09 '23 at 09:36

0 Answers0