Android: Checking if a user already purchased an IAP

answering to your question the reason why this function does not return correctly the information of the purchased products is because there is a function in the java file that is not implemented correctly, I do not remember with precision what it was, it is described in the other post to which you have made reference, I believe that it has to do with acknowledgePurchase.

For those who have this problem, there is a working solution in that post.