Revamped the sample completely and now it shall demonstrate following using AeroGear:
Authenticate user to allow for managing their Google Drive. Handling access denied scenario (i.e in case user cancelled the authentication). Please note, looks like currently AeroGear lib is not handling this scenario. I have worked around it by listening to AGAppLaunchedWithURLNotification notification. Fetching users documents from Google Drive. Allowing user to update title of a file. Tapping on a file which is owned only by the user brings up a dialog to change the title. Allowing user to delete a file. Swiping left on a file that is owned only by the user brings on a 'Delete' action. Allowing user to upload a new image to his drive. Various UI & experience related changes.
|