Debugging iPhone CalDAV interactions? - iphone

I'm trying to connect my internal CalDAV server to my iPhone but am running into issues. The CalDAV account is recognized as valid on the "Mail, Contacts, Calendars" settings page, and I can see activity on my server where (as far as I can tell) valid XML is being sent to the device, but none of these events are showing up in the Calendar (nor is it displayed as an available CalDAV calendar).
This is a new CalDAV interface, so I'm fairly certain it's an issue on my end - but I can't see what's causing the iPhone to choke. Is there a way to access debugging output/log files for the iPhone calendar app? If not, is there a reliable iPhone emulator that runs the Calendar app (the emulators I've come across are geared for custom app dev, not for testing the "standard" apps).

Related

How do I get notified when user starts messaging or mailing app in iOS

Actually I want to build such a iOS app which will give alert if user start sms application or messaging application when he is driving more than certain speed limit. As I am new in iOS development I don't know whether it is feasible or not?
Basically my id:
Q: How do I get notified when user starts messaging app?
Due to iOS sandboxing restrictions, you cannot get any information from your app regarding launching or usage of any other apps.
The only way to do this would be if you were the developer of both apps. In that case you could use an external server to log when each of the apps is launched and then get this information from the converse app.

How to hide the applications in iExplorer

I'm developing one application. When I install my app in iphone and if I connect iphone to PC then all my application data will be accessing from iExplorer. Is there any chance to hide my application in iExplorer?
Your application data will always be visible to the user with the right tools. You should not waste any effort trying to obfuscate or hide it.
If you wish to explicitly enable encryption on certain files, you can look into the data protection APIs offered in the iOS SDK. This will protect user files in the case that their phone or device is stolen. The user must have a passcode set for this to work however.

iOS: How to share documents between iPad & iPhone versions of app?

I was under the impression that when Apple rolled out universal apps, that a sharing mechanism was provided to sync files between the same app installed on more than one device. However I don't see much evidence of this. What am I missing?
(Note I would prefer to avoid iCloud, because of privacy concerns about Apple giving users' data to the govt since that is a legal gray area etc.)
You'll need to use a cloud service, such as iCloud to store your shared data. There is no sharing mechanism with a Universal App to share data between devices. The Universal App just lets the same App work on both iPad and iPhone. This is a nice bonus to the customer, because if they have both devices, they only pay for the App once.
The App will need to go get the data from the users storage. If you don't want to use iCloud, you can develop your own, by using storage services from Amazon Web Services, or Microsoft Windows Azure, however, you are stuck with paying for the bandwidth and storage on those services. You're also getting yourself into more work as you'll have to come up with the server side support, and web services yourself. Plus, on the mobile device, you'll need to concern yourself with handling losing a network connection, caching the data on the device, and then sending it when connectivity is regained.

List of applications installed on a iPhone, via the iPhone itself or iTunes

Is it possible to get a list of all installed applications from an iPhone itself? I have read myths of people accessing the internal iTunes data, getting the list of installed apps that way.
1/ A app installed on the iPhone itself and is able to report all installed apps to an external website.
2/ A desktop application that would parse the iTunes data and gather the required information before posting it to an external website.
Anyone have any (A) experience on either of the above or (B) better ideas on how one would go about gathering the App Store name of an application installed on a iPhone.
It is not possible to get a complete list of applications that are installed on the iPhone from the iPhone itself, unless you work on a jailbroken iPhone. You can test for some applications by testing whether there's an application that responds to a particular URL scheme (using UIApplication's canOpenURL method)
A desktop application can do this by reading the data itself. However, it is not programmatically supported, so you're on your own there.

Determine the app IDs of applications on iPhone

Does anyone know how to programmatically determine the application IDs of the apps on an iPhone? I.E. to determine what applications have been installed on an iPhone?
You cannot do this without Jailbreaking the phone. Apple 'sandboxes' each app, so it cannot see outside of its box. If you had a particular application in mind, and that application had a URL scheme, you could check to see if that scheme was supported (which would indicate the app was probably installed), but that's as close as you're going to get.