Quantcast
Channel: Microsoft Unified Communications Managed API SDK forum
Viewing all articles
Browse latest Browse all 889

UCMA - Sending an IM to User on Mobile Client - Only Toast Message appears

$
0
0

Hi,

I've written an application which sends notifications to users. I've also replicated the issue with the InstantMessageCall solution supplied with the SDK.

This only seems to affect mobile clients. The user receives the Toast and accepts it, but they never received the message which is sent once the flow has been established.

So looking at the example app, the user receives the following Toast.

                _instantMessagingCall.BeginEstablish(_calledParty, new ToastMessage("Hello Toast"), null,
                    CallEstablishCompleted, _instantMessagingCall);

But when flow is established and the message is sent, the mobile client doesn't display it.

// The Instant Message that will be sent to the far end.
        private static String _messageToSend = "Hello World! I am a bot, and will echo whatever you type. " +"Please send 'bye' to end this application.";


private void InstantMessagingFlow_StateChanged(object sender, MediaFlowStateChangedEventArgs e)
        {
            Console.WriteLine("Flow state changed from " + e.PreviousState + " to " + e.State);

            // When flow is active, media operations (here, sending an IM)
            // may begin.
            if (e.State == MediaFlowState.Active)
            {
                // Send the message on the InstantMessagingFlow.
                _instantMessagingFlow.BeginSendInstantMessage(_messageToSend, SendMessageCompleted,
                    _instantMessagingFlow);
            }
        }

Has anyone else come across this? Any help would be appreciated.

Thanks

Michael.



Viewing all articles
Browse latest Browse all 889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>