"Accounting by Value" in Logs
In my application, I am implementing an in-app purchase using the Google In-app Billing API version 3. In the logs from my application, I see:
D/Finsky (26024): [1204] InAppBillingUtils.pickAccount: com.example.myapp: Account determined from library ownership - [2FJ...ZIQ]
Another time when I test my app and switch Google account to my phone, I see:
D/Finsky (26024): [1204] InAppBillingUtils.pickAccount: com.example.myapp: Account determined from installer data - [2FJ...ZIQ]
I am curious:
- What do these magazines mean?
-Why sometimes I see the first magazine, sometimes the second?
- Is there a way to find out what this [2FJ ... ZIQ] means?
source to share
Possible solution for the log Account determined from installer data
: make sure you are using the correct base64 encoded key
Probably too late for you, but I recently had the same log in my console and was wondering why an in-app purchase worked in one app while it didn't work in another - both using the same purchase code ...
I am using build flavors to build two apps with a common codebase and I just forgot to use the correct base64 encoded key. In my case, I just used one license key for two different apps in the play store ...
source to share