How to check what in-app purchases had a user made using the In-App Billing Module for Android with Appcelerator's Titanium SDK? -


Our app uses managed purchases in the Google Play Store, we use it and we use it in our project With no problem being able to apply, it was until a question arose: How do we check these managed purchases?

Generally, the In-App Billing Library has access to the Play Store app and checks for user purchases, but we checked the documents and examples for this module and to make this check If no disclosure has been made, how can we check that the user has purchased the purchase?

This is important because if a user buys, for example, the user should be able to see this skin in every device in which he is installed with that app and logged into the same account Has been a product marked as a purchase.

In short, how do I buy the buyer bought by the user from the Play Store? Can the in-app billing module be used? If the module can not do this, can it be done at all?

We are testing Titanium SDK 3.2.0.GA, Studio 3.2.0.201312191547 and Moto G with Android 4.4 and Xperia, AcroS with Android 4.1.2.

You can indirectly restore the shopping functionality, I believe the way you handle it That is, after calling the restoreTransactions , after listening to state changes, then each is returned as (or not at all) you buy those objects in the same way as the user Buying them there, in this way I think that ...

  InAppBilling.restoreTransactions (); ... // Wait for it, each item is renamed to InAppBilling.addEventListener (InAppBilling.PURCHASE_STATE_CHANGED_EVENT, function (e) {//}) These events and back to the JSN object [Android Dev Site] Expanded at (http: //developer.android.com/google/play/billing/billing_reference.html#billing-intents) // Verified signature var sign = e.signature; ..... // Get JSON object var response = JSON .parse (e.signedData); // Now log the app with the identifier with the identifier, I think var id = response.productId; ....}) like below;  

Or some versions above, I think there is a major overview that there is a way to use restorations.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -