1. NetMage's Avatar
    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
    2008-01-03 08:09 AM
LINK TO POST COPIED TO CLIPBOARD