What are the ways to share data from an app? - iphone

I want to create a camera application.
What are the available ways to share photos that were taken from my app? Email a photo? Send it via bluetooth? Probably a user can upload it to his computer?
How can I implement them?
Thanks.

To send your photo by e-mail, you must save it into a file, create a new mail and attach the picture.
To send it via bluetooth, you must use GameKit or Bonjour protocols to connect to other devices and exchange data using your own application protocol.
To upload to his computer, you must use a Wi-Fi network protocol, and implement a client and server.
Good luck!

Related

Connect WiFi Network via App

I actually create an app where the access to content should be restricted by the WiFi-network the user is connected to.
So is it possible to automatically login to a secured WiFi via App? I don't want to force the user to do it manually. It should be as simple as possible for the user.
Maybe there is a way to install a network profile for the device or something like that?
Any ideas about this?
THX
You may be able to do this with the functions from the CaptiveNetwork framework...
Also you can create a network profile in Apple Configurator and then export them to a website. Then all your users need to do is click a link to that file that you can email them or put on your site or wherever...
CaptiveNetwork reference

Can i access iOS mail app data?

Is there a way using which i can access attachments downloaded though the iOS Mail app? I need to access photos or other documents in my app.
No You cannot access the Mail App Data in any way. It is against the Privacy concerns of the iOS device user. However, the images in the user's iPhone Gallery can be accessed and used in the app according to your needs.
If you register your app to handle various file types, then you could select open with yourapp from within the mail application. So you could send a file from the mail application to your app. For more information see https://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1
No, You are not authorized to take any device data without user interaction that too limited access. You can create your customized mailing data with you have sent mails.

How I verify that user installed an iPhone app?

We provide advertising capabilities to iPhone app customers, where they can advertise apps to millions of users on social network, and stand out among large number of apps in app store.
Now, to prove the ROI, we also want to provide statistics of how many users actually installed the app using our advertisements on social network.
My question is:
How do I verify whether user installed an app (when user clicks on advertisement and we take user to App Store (on mobile device) or itunes page (on PC/Mac) )
Is there a way to integrate with developer's interface to get this information?
Thanks in advance.
This is a broad question and there are some simple solutions which may require some work. Apple provides you no feedback for when an app is installed. Assuming you are storing the click of the ad on a server you will need to match to that click with something you send up when the app is opened for the first time.
(if the ad is shown in a native app on the phone) You can send up a unique key when the click happens and also send that same unique key when the app opens for the first time and match them on the server. This key can be a hashed mac address or something you save to the UIPasteboard. This requires integration on the side of your clients app because they will need to send a http request to you when the app launches.
If the social network is web based then your best bet is to match on IP address which isn't perfect but can give you a high percentage of accuracy.
I guess I'm assuming you are hosting the ads though. If you are not then you will have to rely on what the ad networks give you and many of them can provide some form of install tracking.
Well, you can always look at that persons phone and check if your app is present there :P
Just kidding.
You have some ways to get information such as these.
If you have registration in your app, you can monitor the userInfo, along with the UDID.
You can setup some webservice calls on applicationDidFinishLaunching for the first time events (using NSUserDefaults key to save the first time info) and use that.
Check out FLURRY for data analytics in your app. This is an awesome service, and allows you to track your users and how they interact with your app. I would recommend this !
Most ad networks have conversion tracking capabilities, but once you click an ad from the web and go to iTunes, all hope is lost tracking a conversion.
I guess you'd be able to track a conversion if you require the user to provide information (like an email address) before directing them to the appstore then requiring them to input that same email once the app is opened.

reading the inbox of iphone email

I want to transfer data from my desktop pc/mac to my iphone app. To do so I think, that email is a good way. Workflow:
MAC sends email with data, iphone received email, application read the email (and the attached data) and works with it.
So now I search for a way to access (read only) the email inbox of the iphone via cocoa. Is there any framework to to so?
Nope, in general it's not possible for one application to access the data of another in iOS.
A few options:
Put a web server on either the desktop or iPhone and download/upload the data
Use a public web-service to (temporarily) host the data
Encode the data as a URL and send that by email. Then the user would press the link which would start your app and import the data
Allow the user to copy data over to the Documents directory of your application (iTunes file sharing). This is how Apple does it in Pages, Keynote, etc.
DropBox (which has an API available)
As I know there's no such a framework in iOS SDK 4.2. You can only send emails within the app (In-App-Mail).

iphone sms application

How to develop a sms app for iphone?
Are there any api available to develop this kind of app?
Is there any other way to develop this type of app for iphone apart from using api
Please suggest me some ideas..
Thanks
From what I know, SMS can only be sent from the official SMS app.
You can only forward the user to the application. You may specify the phone number of the recipient. Unfortunately, you can't even specify the content of the SMS, so it's not of much use.
If you are interested : How to programmatically send SMS on the iPhone?
If you are interested in how to design an application that looks like the SMS application, please specify this in your question.
Check the documentation for MFMessageComposeViewController. iOS 4.0 or later is required though.
On earlier OSes your best bet is to open an sms: URL. The URL scheme only allows you to specify the destination number, not the content of the message.