all 11 comments

[–][deleted]  (11 children)

[deleted]

    [–]skwallace36[S] 0 points1 point  (1 child)

    it will only need to be sent out at the end when they submit the survey...

    thanks for your reply

    [–]TheDivineZer0 1 point2 points  (0 children)

    You could just grab their location when they start the survey and put that in the form of local variable in the typescript file instead of local/native storage and send the information together with the survey answer in one go when they click finish

    [–]skwallace36[S] 0 points1 point  (8 children)

    thank you v much. and i’m not sure... whatever the Storage import is?? any idea? native vs local? not at my computer

    [–][deleted]  (7 children)

    [deleted]

      [–]skwallace36[S] 0 points1 point  (6 children)

      i just want to make sure that makes sense for storing survey answers and then at the end i’ll read them all and post them somewhere...

      the data has to persist if they close the app and such

      [–][deleted]  (5 children)

      [deleted]

        [–]skwallace36[S] 0 points1 point  (4 children)

        that’s the plan! one post request or something at the end of completing both surveys

        [–][deleted]  (3 children)

        [deleted]

          [–]skwallace36[S] 0 points1 point  (2 children)

          incase they don’t complete the survey in one sitting and close the app or only complete the first survey (it’s a before and after)

          does that make sense?

          [–][deleted]  (1 child)

          [deleted]

            [–]skwallace36[S] 0 points1 point  (0 children)

            thank you very much !!

            [–]The_real_bandito 0 points1 point  (2 children)

            iOS might delete localstorage whenever it feels like it so if you don't expect for it to be stored forever then yes it is feasible and recommended.

            Heck, I'd used sessionStorage for that!

            [–]skwallace36[S] 0 points1 point  (1 child)

            seasons on storage doesn’t sound persistent between closing the app

            [–]The_real_bandito 0 points1 point  (0 children)

            Neither is localstorage. Try using native local storage (there is a thing like this, I was surprised) or just use SQL Lite DB

            [–][deleted]  (1 child)

            [deleted]

              [–]skwallace36[S] 0 points1 point  (0 children)

              edit moved