Storing email addresses locally in a .txt file?

0 favourites
  • 4 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • Hi. So I'm preparing for PAX East, and one of the things I want to include is a sign up for a mailing list at the end of the demo. Thing is internet tends to be unstable at these events, so I wouldn't bet on using the i_frame plugin. I want to store these emails offline in a way that won't accidently get erased by localstorage clearing the save file. Any ideas on how to pull this off?

    Thanks

  • Hi Tinimations,

    accidentally deleting the localstorage is like accidentally eating your keys (for me, at least ).

    Is the app opened the whole time? If yes (and also no), may use the browser object; store your mailing list into an array and make two buttons for downloading that array locally on your device as file. Before opening the app, navigate into your filesystem, search the file, open as text and copy the whole thing; after opening the app, paste the clipboard into a textbox and import into array. May be a bit unhandy, but Ild describe this as 100% failsafe.

    Anyway, a localstorage should be totally enough. Since PAX doesnt go 3 weeks, I dont think that you have to worry about clearing the storage (- or you got an Crapple product and.. well... then dont use the localstorage ).

    Best regards and a nice monday,

    Proxy

  • If you are exporting to NW.js, you can use NW.js|Write file/Append file.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • grigrizljac Thanks it worked great!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)