Offline data - mobile or tablet advice

Discussion in 'PHP' started by mattriz, Jan 16, 2014.

  1. #1
    Does anyone on here know how to code offline data? I've had a document solution software written for me in PHP last year to help my cleaning clients, it basically allows users to complete documents, audits, fill in data, sign etc.. then exports out as PDF. That type of software is quite common nowadays but my programmer has no idea how to code in PHP Offline data, this is where a mobile connection is lost (user could be underground?) and it saves the information to the device, whether that be a mobile or tablet, to the sql database within the mobile etc.. then once a connection is received, it submits the information that was saved on the device whilst the connection was lost.

    If you know how to code this or can assist in advice for this, i'd be really grateful.

    Thanks,

    Matt,.
     
    mattriz, Jan 16, 2014 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    You can't do that sort of thing with php.
    Either you have to write it as a native android/ios app or use something like phonegap as a layer between your html/js code and the device
     
    stephan2307, Jan 16, 2014 IP
  3. mattriz

    mattriz Well-Known Member

    Messages:
    348
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Hi, thanks for your reply. We're thinking of keeping our solution as web based but didn't realise that you couldn't write it in php, do you have any information about this "phonegap" as that does sound like it could be the solution here.

    Thanks,

    Matt.
     
    mattriz, Jan 16, 2014 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Is this for a native app, or a web based one?

    If it's native (and assuming for iOS), you can use things like CoreData to store data locally on the device. Although, if your current developer has no clue so far, CoreData might be a little difficult.

    On the other hand, if it's web based, you can use HTML 5's application cache (AppCache) or LocalStorage.
     
    nico_swd, Jan 16, 2014 IP