When the app is online, I create and save a geodatabase to disk.
When I NSLog the path, it looks like this:
/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase
When I put the phone in airplane mode and start the app again, i check for an internet connection and if none try and load the geodatabase.
I use initWithPath.
AGSGDBGeodatabase *geo = [[AGSGDBGeodatabase alloc] initWithPath:geodatabasePath error:&error];
geodatabasePath comes from NSUserDefaults when the geodatabase is created.
I keep getting the error:
Error Domain=com.esri.arcgis.runtime.error Code=10003 "Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found." UserInfo=0x165a5d70 {NSLocalizedDescription=Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found.}
Any ideas?
Thanks
Hi Kyle Dunaway,
Did you try checking the application data and see if the geodatabase file still exists?
If not then this is how you can do it. Connect your device to your machine. In Xcode, go to "Window" (menu) and then "Devices". Select your device from the list on the left. You will see all the applications installed on your device. Double click on the application in question and you should see the files.
Let me know if this helps.
Cheers,
Gagan