diff --git a/build.gradle b/build.gradle index a62cee4..6ecf7fb 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,8 @@ android { applicationId "timur.webcall.callee" minSdkVersion 21 targetSdkVersion 31 - versionCode 115 - versionName "1.2.6" + versionCode 116 + versionName "1.2.7" } signingConfigs { release { diff --git a/fastlane/metadata/android/en-US/changelogs/116.txt b/fastlane/metadata/android/en-US/changelogs/116.txt new file mode 100644 index 0000000..7eba99d --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/116.txt @@ -0,0 +1,7 @@ +WebCall for Android +Latest info: https://timur.mobi/webcall/update/ + +Release notes v1.2.7: +- Support for secure e2ee text messaging +- Fixed minor issue related to wsOnOpen() reconnect + diff --git a/src/main/java/timur/webcall/callee/WebCallService.java b/src/main/java/timur/webcall/callee/WebCallService.java index 6b97bad..4fa3bcc 100644 --- a/src/main/java/timur/webcall/callee/WebCallService.java +++ b/src/main/java/timur/webcall/callee/WebCallService.java @@ -315,6 +315,7 @@ public class WebCallService extends Service { private static volatile boolean calleeIsReady = false; private static volatile boolean stopSelfFlag = false; private static volatile boolean ringFlag = false; + private static volatile String textmode = ""; private volatile WebView myWebView = null; private volatile WebCallJSInterface webCallJSInterface = new WebCallJSInterface(); @@ -2496,6 +2497,11 @@ public void onMessage(String message) { return; } + if(message.startsWith("textmode|")) { + textmode = message.substring(9); + Log.d(TAG,"onMessage textmode "+message); + } + if(message.startsWith("callerOffer|") && Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { // incoming call!! // for Android <= 9: wake activity via wakeIntent @@ -2543,12 +2549,15 @@ public void onMessage(String message) { } } } - Log.d(TAG,"onMessage incoming call name="+callerName+" ID="+callerID+" txtMsg="+txtMsg); String contentText = callerName+" "+callerID; + if(textmode.equals("true")) { // set by signalingCommand() + contentText += " TextMode "; + } if(txtMsg!="") { - contentText += " \""+txtMsg+"\""; + contentText += " \""+txtMsg+"\""; // greeting msg } + Log.d(TAG,"onMessage incoming call: "+contentText); if(context==null) { Log.e(TAG,"onMessage incoming call, but no context to wake activity");