Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8024639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:55:07+00:00 2026-06-04T22:55:07+00:00

Ok the title seems generic so let me explain. I have a note-taking application

  • 0

Ok the title seems generic so let me explain. I have a note-taking application that is not only saved in the database, but also sent to the server through JSON where a website will parse the data and display it. The problem is this: what if the user has no internet connection at the time he/she created the note?

This is how it works: The user will press the save button and it will save the data into the database as well as send the JSON string to the server. If there is no internet connection, the user can still save the data into the database. But how about the JSON string? How will the website know if updates where made when there is no internet connection at that time? Any suggestions will be very much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:55:10+00:00Added an answer on June 4, 2026 at 10:55 pm

    A basic solution would be to store in your database whether the data had been saved to the server successfully or whether the record is “unsynced”. If a save results in an error due to a lack of connectivity you can then make a call after a set time that will check again if there are any “unsynced” records, and try and save those. If it fails again, reschedule the check.

    You can use something like NSObject performSelector:withObject:afterDelay: in order to run some code after a period of time.

    You’ll also probably want to perform this check when the app starts up or returns from the background, to catch any unsycned records if the app was not running in between.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry if my question title seems fundamentally uninformed. Let me explain what I
I see another question on stackoverflow.com whose title seems similar but that doesnot fulfil
Sorry if the title seems confusing, but some examples are in order. Let's say
I think the question title seems to explain eveything. I want to detect whether
I have an element like this: <span class=tool_tip title=The full title>The ful&#8230;</span> This seems
Sorry for the semi-generic title, but I'm still pretty new at rails and couldn't
Sorry for the long title, but it seems most descriptive for my question. Basically,
See title. Reflection.Emit seems to be more about creating a new dynamic assembly, not
I have a simple cakephp form WITH validation that submits to a database. It
I have been tasked with developing a solution that tracks changes to a database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.