Hello again fellow community members.
I know this topic was discussed before, but i have a few question regarding this issue
i have hard time finding the answers to, so here they are:
i am building a cross platform game for both iphone and android.
correct me if i’m wrong, but i know apple does not allow 2 versions of the same game in their store
so i need to go with In App Purchases on the iphone version, but i am wondering if i need to do the same
with android.
-
can i use on android the code: system.openUrl(androidProductId) like i do with “rateit” only apply the paid version id on the trial version? sounds kind of reasonable.
-
if i use the IAP in both of them to cut in development time so it will be easy to use the same version on both platforms, what do i need the store.restore() function for? i mean i saw the documents but i still do not understand what does it return?
- if i want to check for if the version is “restored” i check if a file the saved data file exists- if not i run
store.init( [storeName,] listener ) to check what is the status of the purchase. if “purchased”, i unlock
paid content from inside the trial version. (why do i need to differ if the status is “purchased” or “restored” (
i know google returns only “purchased”)). then i save a data file.
if there is a data file saved i just checked if PAID variable is “true”, then unlock the data.
- finally just to be sure, i make a button for purchase full version. it will trigger the store.purchase(), right?
thanks and sorry if those seem like stupid questions, but i realy need to know how this works.
good day.