Project

General

Profile

MessageReceived Listener Event isnot working

Added by umarkashmiri almost 10 years ago

When i connect to GSM modem it is connected successfully,and i assigned all th necessary properties to gateway and its configuration,I also attached the event e.g.

mobileGateway.MessageReceived += new MessageReceivedEventHandler(mobileGateway_MessageReceived);
void mobileGateway_MessageReceived(object sender, MessageReceivedEventArgs e) {
MessageBox.Show("hi this is message received check");
}

but on receiving a new message this listener is not fired,Am i missing some property???


Replies (1)

RE: MessageReceived Listener Event isnot working - Added by umarkashmiri almost 10 years ago

The problem has been resolved:
We have to call the following function before attaching the listener
mobileGateway.EnableMessageNotifications();

    (1-1/1)