integration uairship? - iphone

I am integrating urban airship in my app i had following all the steps in given link
(https://docs.urbanairship.com/display/DOCS/Getting+Started%3A+iOS%3A+Push) but the problem here is i am getting an error that AirshipConfig.plist file is not found,can some one help me
thanx in advance

All you have to do is create a .plist file with that name, but here is my AirshipConfig.plist file. You just have to fill in your application key and secret.

There should already be a sample file AirshipConfig.plist as part of the download. However you need to rename the file from AirshipConfig.plist.sample to AirshipConfig.plist and edit the contents (eg, add in application key and secret)

Related

True Vault blob store

i am working on true vault blob store. truevault is complete working fine but creating problem in uploading and downloading pdf or any other file. i download the source code from Github i cannot view any message or file name. if any idea about true vault or any one worked on this api kindly help me. thanx
// blobs
$response = $blobs->upload("input_file_1.bin");
$blobId = $response["blob_id"];
$blobs->upload("input_file_2.bin", $blobId); // replace existing
$blobs->download($blobId, "output_file.bin");
first parameter in upload method is local file path, same for second parameter in download method. I will add better explanation to the documentation.

Where to store SQLite file from app user

In my project I have stored my sqlite(DB file) file in Document directory and also set UIFilesharingMode - NO , but now user can able to acces the file using Xcode->orginizor and also he can able to modify in table and able to change the data in that dable .
My requirement is, how I can hide or restrict user to not access that file.
If any one have any intelligent idea please share me.
Thanks.
You have to use encryption. There's no way to prevent someone accessing Documents folder and there's nowhere for you to store the sqlite file.

itms-services // action=download-manifest url as local file

I am trying to utilize:
itms-services // action=download-manifest url as local file, is there any standard way of utilizing plist file via that?
I've seen this done in an app that aided with OTA app updating for developers; what I saw in the source code was that a file:// link was used. If you want to do this, you'd have to know the location of the file in the filesystem. Then, you'd use a standard plist file, but in the url key, you'd put file://location/to/your/ipa/file and it would essentially be the same.
Though, that isn't the best way of doing things, because it is an unknown whether the user has the ipa file on their device or not.

Pass data from 3 plist files using custom URL scheme

I have a Lite and Full apps. I need to pass the data from 3 plist files which are in Documents folder of the app (Lite), to the new (Full) app. I understand it can be done with custom URL scheme. Can someone explain the process of exporting/importing the data?
Can anyone confirm that this could be done?
Because of the sandbox environment on iOS, an application is only able to access its own Documents folder. This means your Full app cannot access files (in your case the .plist files) from the Lite's Documents folder.

quick question about plist

Can my application download a .plist from a URL and replace the one that I built in xcode and shipped with the application?
Thanks
Leo
No, you can't change anything in your application bundle. You must download you plist file to some folder in application sandbox (documents or caches) and read it from there.
Your possible workflow for reading that plist can be:
Check if plist file is present at download location. If yes - read it from there
If it is not present - read plist shipped with your bundle (or copy plist file from bundle to download location and go to step 1 - this way workflow may be a bit more consistent)
You can use an NSURLRequest to download the .plist file, and then save it the Documents directory in your app's sandbox. Use the NSSearchPathsForDocumentsInDomain() function (see the Foundation Functions reference for more info) to get the file system path to the Documents directory.
Read for More