RestComm / restcomm-android-sdk

Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications
http://www.restcomm.com/
GNU Affero General Public License v3.0
153 stars 109 forks source link

INCOMING_MESSAGE_ACTION is not working well. #708

Open mertgunay opened 7 years ago

mertgunay commented 7 years ago

When I get a message from "B" device, "A" device is opening a new Intent but the problem is that every message is opening a new intent. That means, 100 messages equals to 100 new intent.

How can I solve this problem ?

        params.put(RCDevice.ParameterKeys.INTENT_INCOMING_MESSAGE, new Intent(RCDevice.ACTION_INCOMING_MESSAGE, null, getApplicationContext(), ChatActivity.class));

this code is not working very well.

atsakiridis commented 7 years ago

@mertgunay not sure I follow. Without using intents you don't have a mechanism to receive messages if your App is in the background, etc. So this is by design.

What doesn't work very well, can you elaborate more on your issue?