Results 1 to 1 of 1

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


Thread: Count of missed calls

  1. #1
    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
  •