iphone - CoreTelephony framework available for Facetime too? -
i'm develloping app works facetime. unfortunatly, there not yet facetime frameworks or apis available, i'm working have. must know, when facetime call placed, native phone app job. problem when call over, stays in there.
what want to, once call ended, send local notification user ask if wants app, of coretelephony framework. know work-in-progress framework , it's still private one, but:
can use framework in app , publish it, without been rejected apple?
does framework works facetime too? can't work. here did:
- i first imported framework in appdelegate header file
- and then...
.
- (void)applicationdidenterbackground:(uiapplication *)application{ nslog(@"applicationdidenterbackground"); ctcallcenter *callcenter = [[ctcallcenter alloc] init]; callcenter.calleventhandler=^(ctcall* call){ if (call.callstate == ctcallstatedialing){ nslog(@"call dialing"); } if (call.callstate == ctcallstateconnected){ nslog(@"call connected"); } if (call.callstate == ctcallstatedisconnected){ nslog(@"call disconnected"); } }; }
nothing gets traced. ideas?
update: run little test, figured out code works actual phone call. ctcallcenter block must placed in applicationdidbecomeactive method tho. realized (like apple documentation says), frameworks dispatches notification when you're in app. suspended mode doesn't kind of notification.
Comments
Post a Comment