cordova-plugin-mserviceinterface-2.0 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/mInterface.java +4 -1
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
4
|
id="cordova-plugin-mserviceinterface-2.0"
|
|
5
|
-
version="1.0.
|
|
5
|
+
version="1.0.65">
|
|
6
6
|
<name>mserviceinterface-2.0</name>
|
|
7
7
|
<description>This plugin establishes the connection to the native interface and performs the requested task.</description>
|
|
8
8
|
<author>selfservit@gmail.com</author>
|
|
@@ -851,6 +851,7 @@ public class mInterface extends CordovaPlugin implements com.google.android.gms.
|
|
|
851
851
|
Intent smsIntent;
|
|
852
852
|
PluginResult result;
|
|
853
853
|
try {
|
|
854
|
+
callback = callbackContext;
|
|
854
855
|
contact_number = args.getJSONObject(0).optString("contact_number");
|
|
855
856
|
if (contact_number != null) {
|
|
856
857
|
if (!contact_number.equals("")) {
|
|
@@ -883,6 +884,7 @@ public class mInterface extends CordovaPlugin implements com.google.android.gms.
|
|
|
883
884
|
Intent intent;
|
|
884
885
|
PluginResult result;
|
|
885
886
|
try {
|
|
887
|
+
callback = callbackContext;
|
|
886
888
|
String contact_number = args.getJSONObject(0).optString("contact_number");
|
|
887
889
|
if (contact_number != null) {
|
|
888
890
|
if (!contact_number.equals("")) {
|
|
@@ -915,6 +917,7 @@ public class mInterface extends CordovaPlugin implements com.google.android.gms.
|
|
|
915
917
|
PluginResult result;
|
|
916
918
|
String toEmail, ccEmail, subject, body, mailto;
|
|
917
919
|
try {
|
|
920
|
+
callback = callbackContext;
|
|
918
921
|
toEmail = args.getJSONObject(0).optString("toEmail");
|
|
919
922
|
ccEmail = args.getJSONObject(0).optString("ccEmail");
|
|
920
923
|
subject = args.getJSONObject(0).optString("subject");
|
|
@@ -973,7 +976,7 @@ public class mInterface extends CordovaPlugin implements com.google.android.gms.
|
|
|
973
976
|
String regex;
|
|
974
977
|
boolean result = false;
|
|
975
978
|
try {
|
|
976
|
-
regex = "
|
|
979
|
+
regex = "^\\+?-?\\d(\\d|[ -](?!\\s))+$";
|
|
977
980
|
if (mobileNo.matches(regex)) {
|
|
978
981
|
result = true;
|
|
979
982
|
}
|