Android Question Question about GooglePlayBilling

D

Deleted member 103

Guest
Hi,

I have this procedure that outputs the in-app prices without an error message even without an internet connection.
Is that normal, is the data stored offline somewhere?

B4X:
Public Sub GetAllProductPrice
    'make sure that the store service is connected
    Wait For (billing.ConnectIfNeeded) Billing_Connected (Result As BillingResult)
    If Result.IsSuccess Then
        'get the sku details
        Dim sf As Object = billing.QuerySkuDetails("inapp", Array(Product_1year, Product_1month, Product_6month))
        Wait For (sf) Billing_SkuQueryCompleted (Result As BillingResult, SkuDetailsList As List)
        If Result.IsSuccess And SkuDetailsList.Size > 0 Then
            Dim mp As Map
            mp.Initialize
            For Each Sku As SkuDetails In SkuDetailsList
                mp.Put(Sku.Sku, Sku.Price)
                Log("SKU-Preis= " & Sku.Price)
            Next
            CallSub2(Main, "ShowInAppBilling", mp)
        End If
    Else
        ToastMessageShow(Starter.language.value("strInAppBillingError"),True)
    End If
End Sub
SKU-Preis= 7,49 €
SKU-Preis= 35,99 €
SKU-Preis= 23,99 €
 

DonManfred

Expert
Licensed User
Longtime User
Is that normal, is the data stored offline somewhere?
Where should the data coming from when not stored offline by Google?
I guess googleservices fetches the data when YOU call a specific method the first time.
It is possible that googleservices do store this Data.
 
Upvote 0
D

Deleted member 103

Guest
Where should the data coming from when not stored offline by Google?
Yes, I can't imagine any other way.

But where should Google save the data when I uninstall and reinstall the app?
Well, that's a secret from Google.
 
Upvote 0
Top