question

stevenb27 avatar image
stevenb27 asked

IAP does not seem to initialize at all

Hey All, My IAP doesn't seem to start up at all. I know my AmazonIAPManager starts up through a debug.log in it's awake, but I never seem to get anything else from it after that. I set up the events myself through a different object. Here is the only thing close to a log as far as I can tell (if this is actually a hint on how to fix my Game Circle, that would be helpful as well): W/dalvikvm(30769): No implementation found for native Lcom/amazon/ags/jni/AGSJniHandler;.isLoaded:()V I/AGSJniHandler(30769): AmazonGamesJni is not loaded, trying to load library W/AGSJniHandler(30769): AmazonGamesJni not found. Java Native Interface will not be available and later... D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.PII(30769): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(30769): Options bundle is null I am attempting to test through the SDK Tester. Testing on a Galaxy S III. No callback is ever returned.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

digitalmutant avatar image
digitalmutant answered
Same problem here.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Stevenb27, Thank you for writing to us. The logs you have pasted in your post, those are being printed to Game Circle unity plugin. So the logs are not relevant. The problem seems to be due to not declaring the ResponseReceiver in the AndroidManifest.xml. https://developer.amazon.com/sdk/in-app-purchasing/documentation/quick-start.html#Step%202 When you are building through unity3d, please make sure that you are customizing the default manifest.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

stevenb27 avatar image
stevenb27 answered
Hey Sujoy Thanks for the reply, though I have already done that. Quadruple check the AndroidManifest, always. =P Could it be the the Game Circle logs are interfering with the IAP and preventing it's start up? I could also send you my AndroidManifest via email if it would help you locate anything that could be interfering with it? It's just very odd that I literally get no sign of the plugin doing anything, failure or otherwise. If it helps I am currently using the most up to date IAP and GameCircle plugin along with Unity 4.3 Thanks, Steven Added Version Information Message was edited by: stevenb27
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Stevenb27, There is a sample app (AmzonIAPTestScene) bundled with the IAP unity plugin. Can you please try to run that and see whether the issue still persists?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

stevenb27 avatar image
stevenb27 answered
Yes it does work in the test scene. (within my project using my json and my manifest) This is really weird... I don't understand what I could possibly be doing wrong. I seem to be doing everything exactly the same. In fact, I'm having the exact same issue with Game Circle right now. My Game Circle worked in the test scene, but in the front end of my game it initializes and logs-in fine. The toast comes up, but all the active functions (ex: ShowLeaderboardOverlay) return a null java class.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Stevenb27, Can you please provide the relevant code snippet and logs through ContactUs ( https://developer.amazon.com/help/contactus.html) so that we can investigate further? Thanks.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mound-he avatar image
mound-he answered
Hi, I believe it happens because AmazonIAP class has a static constructor. So you need to launch any other method or property to activate that constructor. Try to add the line below in your script in Start(): AmazonIAP.initiateItemDataRequest( new string[] { "coinpack.tier.2", "coinpack.tier.5", "coinpack.tier.10" } );
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

stevenb27 avatar image
stevenb27 answered
Thanks a lot! My setup was prone to such issues because I stored a variable to change in the sdkisavailable call back. Defaulting to false, I never called a function to the IAP plugin. Good work sir.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

i-cool avatar image
i-cool answered
Hi Sujoy, I'm using me Samsung Tab 2 to test Amazon in-app purchase with the bundled test scene but it's still not working. I place the test JSON file on /mnt/sdcard on the tablet but it's still not working. I also updated the manifest and still nothing.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

i-cool avatar image
i-cool answered
Hi Sujoy, Nevermind - got it to work. Thanks,
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.