2
시뮬레이터에서 장치로 메시지를 보내려고합니다. 시뮬레이터에는 한 명의 사용자가 있고 다른 사용자가있는 장치가 있습니다. 그러나 현재는 존재하지 않습니다. ios에 XMPPFramework를 사용하고 있습니다. 여기에 내가 [email protected]
이 방법을 다음에 기록됩니다 XMPPFramework - 현재 상태가 iOS에 수신되지 않음
NSXMLElement *presence = [NSXMLElement elementWithName:@"presence"];
[presence addAttributeWithName:@"to" stringValue:[NSString stringWithFormat:@"[email protected]"]];
[presence addAttributeWithName:@"type" stringValue:@"available"];
[[self xmppStream] sendElement:presence];
그러나 마지막에
문제가 무엇인지- (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence
{
NSLog(@"---------- xmppStream:didReceivePresence: ----------");
}
를 호출되지 않는 존재에게 보내 사용하고있는 코드는?
안녕하세요. 이 XMPP 응용 프로그램을 사용할 수있게 만들었습니까? –