Posts

Post not yet marked as solved
1 Replies
726 Views
Hi,In my app, If app is running in foreground, I need user's current location.But I have doubt regarding messages for privacy authorization which would be shown in prompt and setting screen of APP-In Current implementation We are showing below messages -:NSLocationAlwaysAndWhenInUseUsageDescriptionEnable location services “Only While Using the App” to choose your car upon arrival and return your car via the app at most locations. You can also find nearby locations, gas stations, and places to park. Choose “Always Allow” to further personalize your experience.NSLocationAlwaysUsageDescriptionEnable location services to choose your car upon arrival and return your car via the app at most locations. You can also find nearby Avis locations, gas stations, and places to park.NSLocationWhenInUseUsageDescriptionEnable location services to choose your car upon arrival and return your car via the app at most locations. You can also find nearby Avis locations, gas stations, and places to park.Here the discription for whenInUse and AlwaysAllow is same because in iOS10, prompt will be shown with two buttons allow and don't allow instead of "always allow" and "while in use" button titles and the description of NSLocationAlwaysUsageDescription will be shown in prompt and setting screen.And for iOS11 NSLocationAlwaysAndWhenInUseUsageDescription this message would be shown which is correct because in iOS11 there will be three button "always allow", "while in use" and "never".Is that description is suitable for NSLocationAlwaysUsageDescription for iOS 10or do we need to change the message to specify the description of always allow?Your help would be appreciated.ThanksAmit Gupta
Posted Last updated
.
Post not yet marked as solved
0 Replies
460 Views
Hi Team,I am using NSPersistent store container, when calling save context method I am getting below error.Can you please help me out to figure out what exactly the issue is -:Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=256 "The file “FileName.sqlite” couldn’t be opened." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/77BD98A1-5EF1-4EF6-8F53-827F820F1238/Library/Application Support/FileName.sqlite, NSSQLiteErrorDomain=10, NSUnderlyingException=disk I/O error}, ["NSUnderlyingException": disk I/O error ( 0 CoreFoundation 0x00000001818d6da4 <redacted> + 252 1 libobjc.A.dylib 0x0000000180a905ec objc_exception_throw + 56 2 CoreData 0x00000001841af760 <redacted> + 2932 3 CoreData 0x0000000184225f84 <redacted> + 124 4 CoreData 0x00000001842a8ba4 <redacted> + 84 5 libdispatch.dylib 0x00000001811c8ae4 <redacted> + 16 6 libdispatch.dylib 0x00000001811d1640 <redacted> + 56 7 CoreData 0x00000001842a8aa0 <redacted> + 256 8 CoreDataYour Help would be appreciate.ThanksAmit Gupta
Posted Last updated
.