简体   繁体   中英

Open iOS Messages app and go directly to the Inbox/Messages list

My goal is to view the messages in the SMS inbox.

I recognize that one cannot access the SMS inbox from within another application, so I have gone the route of:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]];

The problem with this, is that is pulls up the "New Message" screen.

Is there anyway I can avoid this and go directly to the list of messages?

Unfortunately there are only two URL schemes for Messages,

  • "sms:" , that opens the "New message" screen
  • "sms:1-408-555-1212" , that opens the "New message" screen with the number provided

As Apple developer documentation refers: https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/iPhoneURLScheme_Reference.pdf

[Link updated]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM