I’m developing application with trigger.io and i’m trying to save some data to the device
this is my code for example
forge.prefs.set('tokens', 'Some Data');
and when getting it with
var tokens=forge.prefs.get('tokens');
forge.logging.log(tokens);
i’m getting
[INFO] [FORGE] undefined
the prefs module is enabled and i tried to clear it first with this code
forge.prefs.clear('tokens');
my Iphone simulator is 6.0
Calling
forgefunctions is normally asynchronous, to get a pref you need do do something likehttp://docs.trigger.io/en/v1.4/features/api.html has more details.