Access device messages in application - iphone

How can we read our device inbox message in our app? I have to read all messages which i have in my device message inbox.
Thanks

Are you asking how to access emails or SMS messages? If so, there's no way to do that. You don't have access to that kind of personal user data using the iOS SDK. Just think about the controversy that UDID's are causing right now, and consider what would happen if a third party app had that kind of access.

You can access messages only on jailbroken device.
Your app will most definetly not be approved for App Store.
If you're still interested, see the accepted answer on How to Make Application which Store Sent and Received Messages in iPhone

Related

How to get these event notifications on iOS?

When seeing EMBRACE+ , I wonder how it can get all event notifications on iOS . Some system event notifications and third-party application notifications ,without JailBreak and private APIs.
Thanks for any replies.
I thought it maybe is a BT2.1 device.So the developers can use Message Access Profile (MAP) to read the calls , messages and Email...
As for the facebook or skype,I thought that this APPs have their SDK for developers to read the notification.
Sorry for my poor English.

apple push notification with iPhone

I would like to ask some suggestions to the experts who have faced similar problem as mine.
I am developing an iPhone application almost like a social networking application. This requires inviting friends to the application. The application is integrated with Facebook for login purpose. My question is that,
1) We can identify the Facebook friends who are using our application. We need to send notification (push notification) to iPhones of the friends who are using our application. Our backend is deployed in AWS. So that we have SNS and SQS for notification purpose. But it supports email and SMS notifications. I came to know from the web that there is Apple push notification services. Can we use apple push notification for this purpose? Which one is preferred here? SNS or apple push notification. Please advice. If you have any reference sites please give it to me.
To send APNS you need to have token of the device, so you can't send such notification just with the information about Facebook account. But if you are able to know that person is friend from Facebook and he uses your app, you can store some data, like token and facebook login of every user to send them APNS. But! Apple may reject it, because they hate when developers collect data that can identify a person.
APNS is nice for that situation, but risky. (Can anyone proof me wrong or right?)
Email is old-fashioned, but legal and easy to implement, i guess. Like, twitter sends push and email.
Also, you can use Facebook features (not so nice if you will integrate more social networks)
I think that you can use AWS SNS and APNS for what you want to do. You will need the pushTokens for the app/device that you are wanting to send push notifications as they act as the identifiers for the specific app/device to use as an endpoint.
You need to set up an SNS topic. Then you need to subscribe the devices (with the apps of interest) to the topic. Then you can publish to the topic (either programatically or via AWS Management console) and that message will propagate to all of the topics subscribed devices (termed endpoints).
AWS has a tutorial that walks you through this process: I have not tried it yet myself.
http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html

How Apple Push Notifications Deliver to the User in iPhone app?

Am developing an iPhone app. In my current iPhone app i want to integrate APNS that we want to send a messages to the user. I gathered information about APNS. But, still i have some doubts on the APNS.
How APN works that means how the push notifications showing to the user?
If our iPhone app get closed from Background, the Apple push notification will work or our app should be in run?
What will happen if we send a notification to the user but,if the user is in offline. The message will deliver to the user once the user gets online (Get network connection) or the message won't show to the user?
Push Notifications will be show the user if the user doesn't open the app in their iPhone?
Can anyone please guide me on these doubts? I hope on you friends. Please help me. Thanks in advance.
I think you did not follow Apple developer library instructions. I have doubts about your understanding of APNS and its working.
When you send the notification to user, and his cell is off or not connected to the internet, he/she will get message/notification when his/her cell will turn on or connect to the network.
And Push Notifications also work when your application is in backGround or user is not using the application.
Hope this information can clear your confusion, you should look in to the apple developer videos and SDK about push notifications.
Also this is SOreadytohelp.
You asked quite a few questions. I'll try to answer some of them as well as I know:
How APN works: You send a message to Apple's servers with the specific device ID. Apple will deliver that message to the iOS device. (You likely want a more specific answer, so please ask.)
If your app has been allowed background app notifications, then they will be delivered in the background. (The user can enable/disable this)
If the particular iOS device is not connected to the network, notifications will be queued. But, identical notifications will get discarded and only the most recent will get delivered. See: Quality of Service
Yes (basically the same answer for 2).

Is it possible to check the reachability of another device before sending message?

I know we can send a message from within an iPhone app, but I want to check the reachability of my friend's device from his contact info or from any detail of that device before sending the message. Is this possible? If so, how do I do it?
No this is not possible, unless your app can tell a server that it is online, like how WhatsApp does it.

iPhone app - keeps track of the number of sms sent from the app user's phone

I am looking to develop an iPhone app which keeps track of the number of sms sent from the app user's phone. So, is that possible for me to fetch the number of sms's sent from user's iPhone and to show in the app which I am gonna develop?
I guess, its tricky for you. But, if you know anything abt this, kindly let me know too.
Your response will be helpful for me.
Thanks in advance. Take care.
Without jail breaking the device, you cannot retrieve this information.