+ Reply
Results 1 to 1 of 1

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Count of missed calls

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
For everyone trying to do missed call notification Add this to CoreTelephony.h: Code: int _CTCallHistoryStoreGetCountOfMissedCallSince(NSDate *aDate); Then do this to get a count of missed calls: Code: NSNumber *pdate =
...
  1. #1
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,296
    Thanks
    72
    Thanked 210 Times in 168 Posts

    Default Count of missed calls
    For everyone trying to do missed call notification

    Add this to CoreTelephony.h:

    Code:
    int _CTCallHistoryStoreGetCountOfMissedCallSince(NSDate *aDate);
    Then do this to get a count of missed calls:
    Code:
        NSNumber *pdate = (NSNumber*)CFPreferencesCopyAppValue(CFSTR("RecentsLastViewedDate"),
    CFSTR("com.apple.mobilephone"));
    
        NSDate *aDate = [[NSDate alloc] initWithTimeIntervalSinceReferenceDate: [pdate
    doubleValue]];
    
        int ct = _CTCallHistoryStoreGetCountOfMissedCallSince(aDate);
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage

  2. The Following 3 Users Say Thank You to NetMage For This Useful Post:

    christoph2k (07-16-2008), Kyle Matthews (01-03-2008), skrew (04-15-2008)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts