Where is the data stored in Apple Watch and how to access it? - swift4

I'm using Watch Connectivity to communicate between my iPhone and Apple Watch. I'm using the transfer file function to transfer a URL to my Apple Watch. I'm using the sample app provided by Apple in their watch connectivity link, the console says that the URL has been delivered however I am unable to access it in the Apple Watch. I do not know where the file is located. How do I access this file and store it in a variable to display on my Apple Watch in a table?

Related

How to Access Contact information on Apple Watch?

Using watchOS 1 or 2, I would like to be able to access either favorite contacts or all contacts on my watching using the picture. I know that I would be have to use the setItem call but I still don't know how to access the contacts from the Apple Watch itself.
There isn't anyway to do exactly what you want in this case. However, you can use one of the ways explained below:
1- Get contacts in the iPhone from internal libraries, and then use WatchConnectivity framework to transfer data from iPhone to Apple Watch.
2- Set up a cloud service, and then move contacts there from the iPhone. User can see them in Apple Watch whenever it is connected to the Internet.
3- Ask user to specify contacts on Apple Watch once, and then show them to the user.
4- Open the contacts of iPhone programmatically in Apple Watch, which is a question answered here.
As you saw, there is no comprehensive way to see contacts directly on Apple Watch without iPhone help, but these ways may help you. WatchKit library is growing every month and every year, so wait for the new releases.

Apple Watch and iphone communication

I am implementing apple watch app with in my existing app.I need to full fill these task between both iphone and watch
1) sending data from watch to iphone Done (by using openParentApplication).
2) getting call back also done (using openParentApplication call back method)
3) I need to get apple watch notify when user click on a button on iphone app .I have implemented reverse functionality using openParentApplication.
I stuck how to update apple watch UI after user click on any button or any particular task happen on iphone app.
Please let me know is there any way to perform passing event and data from iphone to apple watch
Please use this link https://github.com/mutualmobile/MMWormhole for communication between iphone and watchKit.
You should checkout the new WCSessionDelegate is watchOS 2.0. It can be implemented on both the Apple Watch and contains multiple methods for sending data back and forth between the two devices. Detailed information can be found in the WWDC video Introducing Watch Connectivity

An Iphone App to access SMS and store it on iCloud

Is it possible to write an Iphone App that can access the SMS Messages on the Phone and store it elsewhere? I have seen other questions like this and another question that says one can send SMS with the MFMessageComposeViewController from the MessageUI Framework.
Since both the questions were more than a year old, is it possible to do this now ( Accessing SMS messages and storing it on the iCloud) ?
No this is not possible, the iOS SDK does not allow you to access the messages from the messages.app.
Also all message are already backed up to iCloud when a device backup is made.
The Apple Dev Library says, "In iOS 4.0 and later, you can send text messages from within your application. This feature is strictly for sending messages. Incoming SMS messages go to the built-in Messages app." I wish they would explain why they won't allow programs to access messages.
So not with an iPhone app, apparently, but you can access them with a desktop app. See http://www.wired.com/2013/11/backup-sms-iphone:
"Apple saves your text messages in its iPhone backups, whether they’re saved locally on your PC or whether they’re part of an iCloud backup — which you should have. That’s good! Unfortunately, they’re not separated out. However, you can access them through the filesystem. If you back up locally on an Apple machine, you can find the file under Library > Application Support > MobileSync > Backup. There should be multiple folders there, each with a different backup image of your phone. Each of the folders should have a file named ” 3d0d7e5fb2ce288813306e4d4636395e047a3d28.mddata.” Those are your texts, in SQLite database form."
You'll need to use SQLite to decipher the file. There are some instructions here:
How to Access and Read the iPhone SMS Text Message Backup Files.

How does the System Status iPhone app obtain Wifi network roaming information?

I've just downloaded an app from the App Store called System Status which gives you detailed information about the iPhone it's installed on.
One of the features provides a system log which allows you to see the network info when you roam from one BSSID to another.
My question is how did they do this?
I have searched everywhere and the only way I have found requires the use of private APIs. I am assuming that since this app is live on the App Store there is a legal way to obtain the information.
After some deeper digging I think that they got the information from the Apple Status Log, more details are available via these links:
https://developer.apple.com/library/ios/#documentation/System/Conceptual/ManPages_iPhoneOS/man3/asl.3.html
http://www.cocoanetics.com/2011/03/accessing-the-ios-system-log/

Accessing existing voice notes from iPhone App

I want my current iPhone App to access the iPhone for existing voice notes.
Two questions on that:
Where by default the voice notes on iPhone gets stored.
Do I have access to Audio Recorder (Voice Momos) App from my iPhone App.
Do I have access to those voice note from my iPhone App. (If no, then is there any reference which provides proof for the same, that I don't have that access?)
Apple does not provide any API for voice notes, so there is no way to access them.
You want prove that you can't access them, which I can't not give. But since the developers documentation does not provide API for voice memos you should accept that is is not allowed by apple.