Access Local SMS Data in the Application in iphone - iphone

I want to access all of the message text body so I can store it in some file.
Like I have stored the address book in csv file and when I press the restore button at that time particular csv data I set in the address book.
Is it possible in iPhone to access that way SMS data in the application?

You can't, there is no public API for accessing the message app.

Related

Can I turn data in google assistant app into file format for upload?

I am creating an app for google assistant which will collect data while a user plays a game and then send that data to a project database. The API I am using to sent the data (synapse) requires it to be in file format, however, I can't find a way to create a file for the data due to the nature of google assistant apps. Am I overlooking a way to do this/is there a way to get around this and send the data somewhere else to make it into file format? The data is stored in a JSON object.
The conversation that your users have with your Action will be relayed from their Assistant device (such as Google Home) to Google's servers, which do a little processing, and then to your server. Your server is then responsible for sending back a reply to Google's servers, which sends it on to the Assistant device. This is very similar to how a web browser and server work, and for good reason - your server accepts commands via a "webhook", which is just a fancy way of saying that Google's servers contact your server via HTTPS, and you're sending back a reply via HTTPS.
Your webhook can do anything - as long as it does it fast enough. You can store what command the person has issued and either aggregate a number of them into a file format to send, or send each one.
Your Action does not, itself, run on the user's device any more than a web page with a form "runs" on the user's device. It displays there, just like your Action is read out loud... but almost all interaction is sent back to you with minimal processing on the device itself.

Can I get some sort of notification from parse.com if a user "flags" certain material from my iOS app?

I am using parse.com to store my backend. My data is crowd sourced. So there is a chance that some material will be vulgar/spam. I want to allow the user to flag certain objects that I store in Parse so I/others can take a look at it. My idea right now is to have the user tap a button on the object in question and have that send me an email. I don't believe I can have that send me an email with some reference to that object. I know I can have the email UI pop up and they can send it that way, and that will be my last resort. But is there a way I can utilize parse and just have that button tap send some data to my parse backend, then have that send me an email with that object id in the email?
Thanks
Look at Parse's Cloud Module Guide. It has instructions on how you can use SendGrid, Mailgun, or Mandrill from cloud code to send an email whenever a new object is saved. You can use this to send yourself an email when a user creates a new "Flag".

Can we save the notifications into SMS folder of iphone/ipad?

I want to save the notifications, that come to my app from the server, in the SMS folder of an iPhone or iPad but I couldn't find a way about how to do. My app sends GET in a scheduled struct and if it realizes any changes I want to bring the notification and save it to the user's SMS folder. I parsed JSON during GET function and the changes which will trigger the saving method too are from JSON object... You can just give an idea about how to get started too.
PS: My app targets iOS 5
If I understand your question correctly, you want to be able to save messages that are sent via push directly into the user's SMS (messages) folder on the phone.
The short answer is you can't do this - your application is sandboxed, and unless you're running a jailbroken device where you have access to the required files it's not possible. How you're sending or what you're doing with the notification is irrelevant - the SMS app is out of bounds, and you won't be able to save anything to it using the public APIs.

Data Exchange between same iPhone App on separate devices

I am developing an app on iphone that lets user take photos, add comments & GPS location to it and send it as an email to another user.
If the recipient has installed the same app & when she clicks on the attachment the same app will launch & parse these details & show them to the recipient. (I intend to use UIDocumentInteractionController for some of the stuff here)
Problem: whats the best way to encode this data in a single file & then retrive it upon arrival from the email.
This is pretty high level, but here are the general steps:
First, register your own file type as described here.
Then, archive your data using NSKeyedArchiver.
Next, attach it to an email using MFMailComposeViewController. Make sure you give it a filename that matches the file type you registered earlier.
Finally, implement application:didFinishLaunchingWithOptions: to handle the case when a user tries to open your email attachment. (Currently, it's the fourth bullet in the method documentation.)

iPhone programming: Sending data from one iPhone to another?

I am new to iPhone development. I created an iPhone application, using which user can create a Business Card kind of UI in TableView. I want to know how can i send a Business Card(which i created programmatically) data into another iPhone via SMS? I want to know the technology which i should use to sending such thing from one iPhone to another via SMS or Email, i shouldn't use WiFi/Bonjour service which can send only upto nearest area.
thanks.
Calve/
SMS wasn't designed for this, and so it probably won't work like you're describing. Here's what I would do:
You have your BusinessCard object. Upload it to your servers and give it a unique identifier. This identifier is what should be sent to the other person, whereupon they can use the identifier to download the appropriate card.
If you wanted to be super cool about it, you could maybe construct a URL like: "card://12345678890", where 1234567890 is the identifier. You could then set your app up to respond to "card://" urls. Then send the card URL around via SMS. When a user taps on the link in their SMS app, it'll automatically open up your app (providing that they have it downloaded and installed, and that nothing else has registered "card://").
For additional awesomeness, you can allow people to create "shortcuts" to their identifier (like bit.ly), so they can send around "card://my-cool-business" instead of "card://1234567890".
You could encode your business card data as a base64-encoded custom URL, assuming it isn't too large. An example of doing this kind of URL-driven data exchange (which does not require uploading anything to a server) can be found here.
I doubt that you'll be able to encode enough information in the tiny size of an SMS message (unless you were just sending compressed text, no images), but this approach would work well with email.
Where MMS is available you can send a VCard formatted object attachment by that route. The receiving phone will detect the attachment format and allow you to manipulate it.
This will also work to non iPhone devices.