iAP not loading in ad hoc.... how to properly load it?
i have a NON consumable iAP. in itunesconnect i called it "unlockfullgame".
so i have a boolean attribute "game.unlockfullgame"
ok fine. right? both names are spelled correctly. ok...
i created a test user and everything works well. it does save too. HOWEVER when i exit the up and CLOSE it from the MULTITASK bar (double tapping the home button) and then Reopen the game, my iAP doesn't load.
this is crazy cause i have a behavior on the first scene that goes..
-Load attribute-
key: unlockfullgame attribute: game.unlockfullgame
as u know, nonconsumables save automatically.. but why isn't it loading after i'm doing this correctly?
so i have a boolean attribute "game.unlockfullgame"
ok fine. right? both names are spelled correctly. ok...
i created a test user and everything works well. it does save too. HOWEVER when i exit the up and CLOSE it from the MULTITASK bar (double tapping the home button) and then Reopen the game, my iAP doesn't load.
this is crazy cause i have a behavior on the first scene that goes..
-Load attribute-
key: unlockfullgame attribute: game.unlockfullgame
as u know, nonconsumables save automatically.. but why isn't it loading after i'm doing this correctly?
Answers
You are using iAP for unlocking the full game right?
So if you are using unlockfullgame as the global attribute to trigger the full game mode, you might need to save that attribute after the iAP process(eg. save attribute game.unlockfullgame to "unlock status"). So everytime you load the game use load attribute key "unlock status" to unlockfullgame
From my understanding the global attribute that you declared for the iAP process to trigger(which is unlockfullgame) will most likely not retained the previous trigger.
Hope i got this right :P
Cos on my own game i'm also using that method to unlock full version.
Have another attribute that actually unlocks the game IF the IAP is "true"?
But doesn't the game.unlockfullgame attribute do that? I figured I just load that attribute in the beginning and it should be fine.
Can you elaborate a tiny bit my good man?
heres what i did.
on the success screen (after purchasing the iAP i have this.
save attribute
attribute: game.unlockfullgame key: unlockstatus
and in the first scene, i have,
load attribute
key: unlockstatus attribute: game.unlockfullgame
the issue was that i had to load my iAP on my VERY FIRST scene. where my logo is at. i was actually loading the attribute from the second scene (title menu). lol