1

When a SMS comes, I don't want sms alert appear in some condition.So what can I do to prevent it? I look into SBSMSAlertItem,but can't find a method to disable alert. I think I can use mobile subtrate to do this, but which method should I hook?

Thanks.

dustdn
  • 418
  • 2
  • 6
  • 18
  • Maybe if you take a look at the source code for iPhoneDelivery, you'll find something useful: http://code.google.com/p/iphone-delivery-report/ – Cyrille Dec 28 '11 at 14:08
  • @Cyrille thank you for your answer,but I can't get source from the link you gave. – dustdn Dec 29 '11 at 01:13
  • The source is here: http://code.google.com/p/iphone-delivery-report/source/checkout – Cyrille Dec 29 '11 at 13:12
  • @Cyrille I get the source finally after modifying https to http. Thanks. – dustdn Dec 29 '11 at 13:20

1 Answers1

0

You can not stop system's notification in your application. you should refer this SO post

  1. iPhone: How to Programmatically Respond to SMS Messages
Community
  • 1
  • 1
Maulik
  • 19,348
  • 14
  • 82
  • 137
  • 1
    OP is willing to use mobile subtrate, you would be surprised what you can do with that. – Joe Dec 28 '11 at 14:19
  • 1
    @DevinGund yes, OP wants to actually prevent the sms alert from popping up and is willing to use jailbreak methods. Mobile subtrate is likely the place to start but I do not have enough experience to answer the question. – Joe Dec 28 '11 at 14:56