Liferay Sync for Android and iOS contains most of the desktop Sync client’s functionality. The mobile client can, however, only be connected to one portal account at a time. Also, mobile Sync doesn’t automatically download files to your device. To save precious storage space on your device, the Sync mobile app lets you choose the files you want to work with. As with the Sync desktop clients, the latest versions of Sync on Android and iOS provide a consistent user experience across platforms. While this article details using Sync on Android, the instructions also apply to Sync on iOS.
You need to download and install Sync on your Android or iOS device through its respective app store, the same as you do any other mobile app. To find the app, search Google Play or the App Store for Liferay. You can also download Sync from the Liferay Sync downloads page. Once you’ve installed the Sync app on your device, follow the instructions below to learn how to use it.
Connecting to Your Portal
When Liferay Sync first starts on your mobile device, press the Get Started button to begin setup. First, enter your portal’s address. If your portal authenticates with SSO (single sign-on), Sync signs you in via your portal’s sign-in page. Otherwise, enter your account credentials and press Sign In. After signing in, the app takes you to a panel that shows your name, a gear icon for accessing the app’s settings, and navigation options My Sites and My Documents. My Sites and My Documents encompass the portal sites you can sync with. My Documents is your personal user site, while My Sites shows the other sites with which you can sync. No matter how deep you are in the folder hierarchy of a site, swiping to the right returns you to this panel. If you’re in the first level of My Sites or My Documents, pressing the location bar at the top slides the screen slightly to the right to reveal a compact view of the panel. The following screenshots show both views of the panel.
Press the gear icon to access Sync’s settings. Settings shows your account information and an option to sign out of your portal. Settings also lets you toggle Security Mode. Security Mode protects files stored on your device by encrypting them. Using Security Mode requires you to set up a passcode to use when accessing the Sync app. Security Mode protects the files on your device and portal in the event your device is lost or stolen. You should note, however, downloading and opening files in Security Mode takes slightly longer than usual because the Liferay server must use SSL–if it didn’t, your files would be transmitting in the open. Below the Security Mode toggle are the app’s version and a link to send app feedback to Liferay.
Great! Now that you know how to connect to your portal and find your sites, you can get started managing the sites’ files and folders.
Managing Files and Folders
Whether you’re working in My Documents or My Sites, you manage files and folders the same way. Pressing a site or folder shows you a list of its files and folders. It displays each file’s size and modification date. You can refresh the list by pulling down from the top of the screen. Your current location in the navigation hierarchy also appears at the top of the screen alongside a plus icon. Pressing the plus icon launches an upload screen that lets you add content in the current location. You can add a new folder, upload a file, or launch your device’s camera app to take and upload a picture or video. Pressing the X icon on the upload screen’s top right corner cancels any action and returns you to the current file list.
To download a file to your device, press the file’s name in the list. The label
that previously showed the file’s size and modification date is replaced by a
download progress indicator. When the file finishes downloading, your device
automatically opens it in the app you’ve configured to open files of that type.
If you haven’t configured your device to use a specific app for that file type,
you’re presented with a list of apps on your device that can open the file. If
your device doesn’t have an app that can open the file, Sync tells you to
install one that can. Downloaded files appear in the list with the file size in
blue instead of gray. For example, the screenshot below shows that
LiferayinAction.pdf
is on the device.
The Sync mobile app also lets you move, rename, and delete files and folders. To the right of each file and folder in the list is a circle icon with three dots. Pressing this icon slides open a context menu on the right that lets you move, rename, or delete that item. The screenshots below show these options. Note that you should use extreme caution when deleting files or folders. Deleting files or folders in the mobile Sync app also deletes them from your portal and across any synced clients. Accidentally deleted files can be restored from the portal’s Recycle Bin, which is enabled by default. If the portal or site administrator disables the Recycle Bin, however, recovering deleted files is impossible.
What if you want to delete a file on your device without also deleting it in the portal? Currently, you can only do this by signing out of your account in the app’s Settings menu. Doing so removes all downloaded files from your device, but preserves them in the portal. If you’re on Android, it may be possible to use a system file browser app to manually remove downloaded files.
The context menu also provides additional options for files. A small badge on the file icon’s top-right corner indicates the file’s version in the portal. You can also use the context menu to share files you’ve downloaded. Pressing the Share icon opens a list of your device’s apps capable of sharing the file. To close the context menu and return to the list of files and folders, swipe to the right. The following screenshot shows the options available in a file’s context menu.
Awesome! You’ve seen how Liferay Sync keeps you up to date with the files on your Liferay sites. Any new or modified files on your sites are automatically propagated to your desktop and mobile environments. This lets you view and work with your files from within those environments. What’s more, other users you collaborate with can also use Sync to get your latest contributions. This way, entire teams can always work with the latest version of every document.