diff --git a/android/samples/mobile/.idea/deploymentTargetSelector.xml b/android/samples/mobile/.idea/deploymentTargetSelector.xml
index 384b1b1c5..b268ef36c 100644
--- a/android/samples/mobile/.idea/deploymentTargetSelector.xml
+++ b/android/samples/mobile/.idea/deploymentTargetSelector.xml
@@ -4,14 +4,6 @@
-
-
-
-
-
-
-
-
diff --git a/android/samples/mobile/app/src/main/AndroidManifest.xml b/android/samples/mobile/app/src/main/AndroidManifest.xml
index 012ea63d7..ac568c23b 100644
--- a/android/samples/mobile/app/src/main/AndroidManifest.xml
+++ b/android/samples/mobile/app/src/main/AndroidManifest.xml
@@ -7,6 +7,8 @@
+
+
void;
callPhoneNumber: (phoneNumber: string) => void;
sendSMS: (phoneNumber: string, message: string) => void;
+ searchNearby: (searchTerm: string) => void;
};
\ No newline at end of file
diff --git a/ts/packages/shell/src/renderer/src/main.ts b/ts/packages/shell/src/renderer/src/main.ts
index 7a936ab5c..ffff6452d 100644
--- a/ts/packages/shell/src/renderer/src/main.ts
+++ b/ts/packages/shell/src/renderer/src/main.ts
@@ -206,7 +206,6 @@ function addEvents(
api.onTakeAction((_, action: string, data?: unknown) => {
// Android object gets injected on Android devices, otherwise unavailable
try {
- //Android?.showToast("woohooo 2!");
console.log(`Take Action '${action}' Data: ${data}`);
switch (action) {
case "show-camera": {
@@ -224,7 +223,11 @@ function addEvents(
}
case "send-sms": {
let d: any = data;
- Android.sendSMS(d.phoneNumber, d.message);
+ Android?.sendSMS(d.phoneNumber, d.message);
+ }
+ case "search-nearby": {
+ let d: any = data;
+ Android?.searchNearby(d.searchTerm);
}
}
} catch (e) {