system.getInfo targetAppStore

Hello,

is there something we have to do to make it return correct value?

I would like to handle amazon and google play purchases separately, but I’m not sure how to do that at the moment.

Any tips?

Thanks,

Krystian

system.getInfo(“targetAppStore”) should return the Target App Store setting that you selected in the build dialog when you built your APK.

You can’t test this in the Corona Simulator though, it only works on a device.

ingemar: I’m not building using simulator, I’m using Enterprise offline build functionality to build my apps. That’s why I can’t select the target appstore.

Aha! Sorry for that!

I think that you can add the following to your manifest file (inside the <application> tag) to make it return the value you want:

<meta-data android:name=“targetedAppStore” android:value=“amazon”/>

I haven’t tried it myself, but I think it should work…

ingemar: you were totally right, this is how it works!

Awesome :slight_smile:

system.getInfo(“targetAppStore”) should return the Target App Store setting that you selected in the build dialog when you built your APK.

You can’t test this in the Corona Simulator though, it only works on a device.

ingemar: I’m not building using simulator, I’m using Enterprise offline build functionality to build my apps. That’s why I can’t select the target appstore.

Aha! Sorry for that!

I think that you can add the following to your manifest file (inside the <application> tag) to make it return the value you want:

<meta-data android:name=“targetedAppStore” android:value=“amazon”/>

I haven’t tried it myself, but I think it should work…

ingemar: you were totally right, this is how it works!

Awesome :slight_smile: