question

oliver84 avatar image
oliver84 asked oliver84 commented

Testing on android emulator

I'm trying to test an app on my android emulator through the app market. I've read conflicting information on what needs to be done.

Here: https://docs.clover.com/build/create-clover-app/ it says on Step 2. that I just install my apk via the AppMarket Preview link on your Developer Dashboard and that the app will automatically install on my Clover ROM. I'm logged into the Android Emulator with the same account as I am clicking on the AppMarket Preview link but I don't see anything getting installed on the Android Emulator.

That link also says that pricing is optional yet https://docs.clover.com/build/create-your-first-an... in step 4. it says "An app requires at least one pricing option before merchants, including your own test merchants, can install and launch the app."

So do I need pricing or not? I don't have my banking information there yet so I haven't set pricing, but according to the earlier link, it says it's optional. Is this why I'm not able to get it to install?

I'm also not sure what merchant is on the android emulator. I have several merchants on the same account but on the android emulator it just says dev@clover.com on the top right which seems like a default account.
Merchant
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

lilly avatar image
lilly Deactivated answered oliver84 commented
Hi @Oliver84 -- "An app requires at least one pricing option before merchants can install" is likely your issue. This means that a subscription tier of at least FREE needs to be enabled for merchants to install your app.

To do this, navigate to your "Pricing" tab on your dashboard and + Add Subscription. Be sure the country selected is the country of your test merchant.

Direct link is here if you replace devID and appID:
https://sandbox.dev.clover.com/developers/{devID}/apps/{appID}/pricing
6 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.

oliver84 avatar image oliver84 commented ·

I have the pricing approved but the app on the android simulator still says, "This app only launches on the Web". In the app settings, I just have the apk uploaded and no web configurations at all. Why does it think that it's a web app?

0 Likes 0 ·
lilly avatar image lilly oliver84 commented ·

Could you provide your app ID you're trying to access, and the merchant ID that you're running on your emulator?

0 Likes 0 ·
lilly avatar image lilly lilly commented ·

Hi @Oliver84 - your app ID you provided is on production, and the merchant ID you provided is on Sandbox, so you will not be able to access that app on your emulator.

Log into sandbox at sandbox.dev.clover.com/developers using your developer login credentials, and you will see the app you are seeing on your emulator in the "Your Apps" tab on your Developer Dashboard. This has no APK or web URL provided, which is why you're unable to download on your emulator.

0 Likes 0 ·
Show more comments
lilly avatar image lilly commented ·
You can only delete apps when it is installed on 0 merchants. You can check this for each of your production apps by going to https://www.clover.com/developers/{devID}/apps/{appID}/merchants (or by clicking on the 'Merchants' section on the app). Most likely your test merchants/demo merchants have the app installed, so you just need to go to the web dashboard -> open App Market -> navigate to "Installed Apps" tab and uninstall. Give the system a few hours or overnight to refresh, and when it shows you have 0 merchants installed you should see a red "Delete" button come up for the app.
0 Likes 0 ·
oliver84 avatar image oliver84 lilly commented ·

Thank you!

0 Likes 0 ·

Welcome to the
Clover Developer Community