-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amazon app store: Invalid publicKey for store #12
Comments
Sorry, haven't tested the Amazon store. What the error concerns I would try to check the following: A) are you using the correct key? Is there actually a key??? You could check https://github.com/onepf/OpenIAB/ how they do it. |
hmm doesnt use a key for amazon store!? // STORE_KEYS_MAP.put(OpenIabHelper.NAME_AMAZON, is that correct? if i set the key = "" then i get: if i set the correct key then i get: see also: |
.... then i get: it seems like there is something to fix about the amazon - IAP via our openIAB backend.... |
Yes, looks like there is no key needed for Amazon. For testing I assume you are testing on a non-Amazon device!? Did you install the Amazon Tester: Unless you install the Amazon Tester app on your device, billing won't work. Did you do that? |
@noblemaster but does your iab-purchasemgr support IAP without submitting a key? |
I guess in that case there should be an Amazon store installed and you won't need the tester app! How did you install the app on Amazon Fire TV? Did you make sure the Amazon signature is in there (install signature) when you copy it over?
Yes. Simply don't supply a key for Amazon and you are good. |
@noblemaster |
Maybe "signature" is the wrong name. Here is how you do it: When you install your app, make sure to do it with
Maybe you are also able to pass in "com.amazon.venezia" when you launch it via Eclipse, but not sure how/if that actually works??? |
ok got it.... but there is still something wrong.... i dont submit a store key now and i sideloaded via adb install -i com.amazon.venezia .... 11-12 14:55:44.503: I/IAP(21439): IAP: gdx-pay successfully instantiated. ... 11-12 14:55:46.635: E/AndroidRuntime(21439): java.lang.IllegalStateException: Wrong setup state: 3 |
Setup state 3 is defined as SETUP_IN_PROGRESS: Are you waiting for the purchase observer's handleInstall() to be called before you call purchaseRestore. Looks like you are trying to do a purchase restore while the purchase manager for Amazon is still being set up!? |
Hi @noblemaster I can check that, but i do it the same way on Google play and ouya. So IF it works there it should work for amazon also..... Bye |
Good point. On the other hand, I just wrapped OpenIAB, so if it works for Google Play, it should also work for all the other stores including Amazon. I haven't added specific Amazon-code. Have you looked closer at OpenIAB to see how they do it there? |
hi @noblemaster java.lang.IllegalArgumentException: Store public key can't be null or empty value. |
Are you passing in a "null"-key for Amazon? I think not passing in anything for Amazon at all might actually do the trick? |
hi @noblemaster
i have issues with the amazon store:
i always get java.lang.IllegalArgumentException: Invalid publicKey for store: com.amazon.apps, key: ....
do you have any experiences with the amazon store?
bye
phil
The text was updated successfully, but these errors were encountered: