Try the search, it's linked to some great forums

Sunday, January 4, 2015

Google Drive API Integration

These are various notes & references for theabove task;

DrEdit is a sample/template app from Google that allows The User to log on to their personal Google Drive and access files.  I am integrating it into the RouteTracker app.

Changing folder view - http://stackoverflow.com/questions/14603432/listing-all-files-from-specified-folders-in-google-drive-through-ios-google-driv?rq=1
Another thread - http://stackoverflow.com/questions/20391734/listing-all-files-and-folders-from-google-drive-in-dredit
Beginning to understand the Query process - http://stackoverflow.com/questions/16527415/google-drive-sdk-for-ios-issue-with-queries

We had a problem with compiling ARC and nonARC (retain, release) files.  The older DrEdit project was non ARC & would not compile with my newer ARC built file.  This post fixed it - http://www.codeography.com/2011/10/10/making-arc-and-non-arc-play-nice.html Trick is to add -fno-objc-arc  to the compile sources for each file that creates an error. Cludgey!

CoreLocation setup - iOS 8 requires a new means of setting up user location enabling in your app.  This post explains everything in good detail - http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/.  Don't forget to add the new NSLocationWhenInUseUsageDescription key into the pList.

NSUserDefaults - This class is used to store app parameters & other values needed to be passed around to the various controllers.  Here's a nice tutorial- http://www.idev101.com/code/Objective-C/Saving_Data/NSUserDefaults.html