I'm building an iOS app that uses a UIWebView to show most of it's content. I want to use Google Analytics (Web) to track the user behavior in the UIWebView. Will the cookie be deleted once a user updates their app? Can I somehow keep it?
It should not!.
However NSCookie default storage places not revealed.But from IOS4 you can provide your storage location using
– initWithStorageLocation:
Method. Documents Folder persists across updates.So you can make sure it persists by storing in documents folder.
Related
I'm looking for an iOS API that allows accessing a user-selected folder in place (without importing it). It seems to be possible with native frameworks from Apple. How I expect it to work:
User selects a folder using the native document picker.
App gets access to the folder and can read and write its content.
Access is persisted when the app is killed and restarted.
This functionality can be seen in the LumaFusion app. The feature is called "Linked Folders". It allows to add user-selected folders with a native document picker, which are then available for the app. The app can load assets from the previously selected folders. The content of the linked folders is not copied, so it's not an import. External changes to the content of linked folders are immediately visible in the app. Access to the folders is persisted, even if the app is killed and restarted, so the user won't have to choose the folder again.
Any hints of which API can be used to implement such a feature will be appreciated. I would also love to learn if there are any limitations, like the kind of the selected folders, will it work with any destination, including iCloud Drive and third-party file providers, etc. I believe it has to be documented somewhere but can't find the correct Apple Documentation page.
Not sure why I missed it previously, but it seems this documentation answers my question:
Providing Access to Directories
Use UIDocumentPickerViewController to get access to the user-selected directory URL.
Save the URL as a Bookmark for later using bookmarkData method.
Use startAccessingSecurityScopedResource and stopAccessingSecurityScopedResource methods when accessing the bookmarked URL content.
I need to create an integration between my app and apps by another developer. There are several ways to store data for an app, some that allow only your app to access it, some that allow other apps by the same developer to access it. But is there an iOS API that allows you store data publicly on the device so that any other app can access it? This data is not secure and cannot be used maliciously.
May not work for your specific needs, but note you can share documents between apps using UISupportsDocumentBrowser. See also here.
UISupportsDocumentBrowser (Boolean - iOS) Specifies that the app is a document-based app and uses the UIDocumentBrowserViewController class.
If this key is set to YES, the user can set the document browser’s default save location in Settings. Additionally, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a Document Browser. Users can open and edit these document in place.
This key is supported in iOS 11 and later.
This would violate iOS security policies and is therefore not possible on device. The only way to enable this is on a jailbroken device.
I want to Implement Browse functionality in my Ipad App.
Actually My requirement is,When i chick on button need to open the all document are existed in device same like as "widows my computer".After Browsing that document,Select any document and I need to Upload the selected document to server.
You only have access to the "sandbox" of your application. It is by default an empty folder. It is called the application documents folder (see here how to get it). Unfortunately, unless you have a jailbroken phone, you have (mostly) no access to other folders.
If you populate this folder with files you can certainly show them in your UI and send them to a server.
I wanna develop an iOS app as the platform for many users. Is it possible to enable multiple users of my app to share resources on the same core data database?
The other alternative to iCloud (with the whole ownership issue) is to have an online server that stores the data remotely.
Then you can create a web service to store and retrieve the data from the server onto the device.
yes This can be done using a custom url scheme on the iphone by help of iCloud URL.
but it has some dark sides.If you use a custom url scheme, only one application "owns" the data. The other application would have to import data from the main application.
another method is system pasteboard i.e. clipboard. you can put stuff on it and then launch another application with a URL that tells the other app to check the pasteboard.There's also the system pasteboard .
for more information on custom URL scheme check this link
How can i access and retrieve the backed up local storage created by phonegap in iOS?
while running the app i'm also looking at the xcode debugger and everytime i close the application it logs local storage backed up but i don't know how to access it.
Also what are the characteristics of local storage? Will it be available if i close the application totally?
What i'm doing is storing list of urls the user used of course the user adds a url to the application now what i want is to store it and even if i close the application the list of urls should still be displayed. Is it Possible?