iOS Question In-App purchase get price of item

ykucuk

Well-Known Member
Licensed User
Hello,

How can i get my in-app purchase item price with local currency of users ?

Thank you
 

tufanv

Expert
Licensed User
I dont think it is not possible to directly show that. Maybe you can use a db like price matrix of ios and show the price according to user's country.
 
Upvote 0

ykucuk

Well-Known Member
Licensed User
I dont think it is not possible to directly show that. Maybe you can use a db like price matrix of ios and show the price according to user's country.

I used this function(SKProduct) with Xamarin before. I know that is possible. My question is how can i get this with B4i ?

Thank you for your reply
 
Upvote 0

Erel

Administrator
Staff member
Licensed User
I've uploaded v1.10 to the hosted builders. The xml file is attached (copy it to the internal libraries folder).

You should call Store.RequestProductsInformation(Array(products identifiers, ...)).
The InformationAvailable event will be raised:
B4X:
Sub store_InformationAvailable (Success As Boolean, Products As List)
   If Success Then
     For Each p As ProductInformation In Products
       Log(p.ProductIdentifier & ": " & p.LocalizedPrice)
     Next
   End If
End Sub
 

Attachments

  • iStore.zip
    25.6 KB · Views: 165
Upvote 0

ykucuk

Well-Known Member
Licensed User
I've uploaded v1.10 to the hosted builders. The xml file is attached (copy it to the internal libraries folder).

You should call Store.RequestProductsInformation(Array(products identifiers, ...)).
The InformationAvailable event will be raised:
B4X:
Sub store_InformationAvailable (Success As Boolean, Products As List)
   If Success Then
     For Each p As ProductInformation In Products
       Log(p.ProductIdentifier & ": " & p.LocalizedPrice)
     Next
   End If
End Sub
Could you send this library for local mac users ?
 
Upvote 0
Top