I had notifications working briefly, but they’‘ve stopped and I can’‘t figure out why. I didn’'t think i even changed anything that should affect them.
I’‘m using MessageEventManager.addNotificationRequests to request delivered and displayed notifications, which the spark debugger confirms are being sent, and I’'m using addMessageEventNotificationListener to add a listener. I also tried extending MessageEventManager to add print statements to the send* methods, and it seems that none of them are being called at all. Am I missing a step?
I’‘ve investigated this further, and it appears that notifications only work if I’‘ve added a PacketListener to the XMPPConnection. The listener doesn’‘t even have to do anything with the packets, and I can add it with a filter that rejects all packets, but if I don’'t add it, no notifications are received.