Give SDK Runner the ability to temporarily store data #295
colonelchlorine
started this conversation in
Ideas
Replies: 2 comments
-
I've actually already been working on something that does just that (adds new messages for communicating with the iframe). Started it last month, but got busy with other things and haven't had much extra time to work on it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@DawsonMyers Had another thought just now .. it would be cool if the URL hash could have arbitrary parameters (similar to the "save" one currently there). Was just thinking it would be neat to save the URL and send it to someone with form state populated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the SDK Runner, it would be useful to have some type of session or window state available that is retained between "Run" actions. As the code runs in an iFrame that only has access to call, multiCall, console.log, console.error - it can't use localStorage, sessionStorage and any objects added to
window
are destroyed when "Run" is pressed.Stack received when executing `sessionStorage.setItem('abc', 123);
https://github.com/Geotab/sdk/blob/master/src/software/api/codebase/iframe.html#L100
Ideas:
allow-same-origin
flagBoth have risks, but so far my experimenting hasn't found any temporary storage hack, so it's not possible to cache results so each run doesn't make excessive API calls. Idea came from trying to build an SDK tool that is URL accessible & stores data in sessionStorage.
Beta Was this translation helpful? Give feedback.
All reactions