For getProductDetails()
method:
- Based on Dr. Jukka's answer, if an alias is created for a product, that must be used inside the code instead of the default numeric one.
For getPurchases()
method:
- All the codes for getting purchases should be inside an AsyncTask. The Nokia In-App Payment Guide only refers that the
getProductDetails()
method should not be executed in the main thread and nothing is specified forgetPurchases()
method. I wasn't using the AsyncTask while restoring which always returned error code 6. Now it works using the AsyncTask.
N.B. The getBuyIntent()
method however doesn't need an AsyncTask, it works fine without it.