0

I am using Unity 2017.1.1p4 and have 4 products for Android in my game. I am testing them and it seems that the purchase is made correctly because if I try to buy the same product for a second time, I do not get the purchase popup message again. I placed a text object in the store scene with the intention of displaying the name of the product (product.name) at the moment of running the On Success event (the code was added inside the On Success event trying to display the product name). However, nothing is displayed, which makes me think that such an event is not triggered. I have double-checked instructions at http://docs.sdkbox.com/en/unity/iap/ and it looks everything is fine.

I will appreciate any comment to help me fix my issue.

116026714274901655949_google answered
    0

    have you tried to deleted it and then download again? May be it has bug somewhere? just like gta 5 cheats

    116026714274901655949_google answered
      0

      I have reviewed the steps at http://docs.sdkbox.com/en/unity/iap/#override-unity-activity several times and it seems to me that everything is fine. However, I must say that both files, CustomActivity.jar and AndroidManifest.xml were already at location Assets > Plugins > Android. What I did was to modify the AndroidManifest.xml according to the instructions in documentation. I am attaching an image with the content of the AndroidManifest.xml file for your consideration.

      I am really interested in using this plugin and greatly appreciate all of the time and patience you are taking to help me solve my issue.

      Thank you in advance.

      Jorge Maldonado answered
        0

        I tried the sample scene with one of my items and no event is fired, OnInitialized, OnSuccess, OnFailure, nothing.

        What else can I check?

        yinjimmy commented
          0

          I added text objects for monitoring other events like OnInitialized. Also, I compiled and uploaded the APK as beta version and tried with a valid tester account but no text is shown in text objetcs, not even in the OnInitialized event where I display the boolean value to see if it was successful or not.

          I will appreciate any other comment you might have.

          Jorge Maldonado answered
            0

            Something that I forgot to say is that I am performing tests without uploading the APK file to Google Play. What I do is to compile to get the APK file, copy it to my tablet and run the game. I wonder if this can cause that some events like OnSuccess do not get fired.

            I will monitor other events as suggested by yinjimmy.

            Jorge Maldonado commented

              Question stats

              • Active
              • Views3078 times
              • Answers8 answers
              • Followers1 follower

              Categories