Offline Pro : File Handling With Mobile & Salesforce : Introduction
Today, I am starting this tutorial Offline Pro to give basic step to step process to handle Salesforce files on mobile specifically in offline mode. This is something I designed recently and want to share my knowledge amongst all.
In this post, I will give a basic introduction to all the steps that are needed to design this solution. To make this tutorial interactive and easy, I am breaking the full solution in multiple posts and will write them one by one.
At the end of every post, I would really recommend everyone to do some hands-on and try to find the next bit of solution. If you guys are able to find the next bit before my next post, please do comment so that we can cross check. If you guys think, the solution can be better or you need more info, please write in comments sections and we will discuss that further.
Below is the screenshot of two basic operations that we need to perform.
Following will be my discussion points in various posts:
Create a File Picker to enable camera(to take pictures) or to pick photos or files and preview them.
Save images/files somewhere on your device to be picked at the time of sync.
Pick images/files(from stored location) and sync with Salesforce
Delete/Archive images when not needed.
Create a File Downloader to download images on demand or automatic on sync.
For the purpose of this tutorial, I have used Ionic1/Angular1 to make a hybrid app but the concepts are same. You can use any language for hands-on.
To start, please click on button at bottom of page to go to first part of it.