Hello, I need help setting up blocks in Kodular to create an app that makes a call automatically when a button inside a WebView is clicked.
What I Want to Achieve:
I have a WebView inside my app that loads a website.
The website contains two input fields:
-
One for entering a code.
-
One for entering a phone number.
There is a “Call” button on the website.
When the button is clicked, the app should make a call directly without opening the default phone dialer.
How the Button Works on the Website:
When the user clicks the Call button, the website generates a custom URL like:
customcall://012012CODE#
Where CODE is the value entered by the user.
What I Need in the App:
-
Detect when the WebView opens a URL starting with “customcall://”.
-
Extract the phone number from the custom URL.
-
Use Activity Starter to make the call automatically.
-
Request CALL_PHONE permission to allow the app to make calls.
What I Need from You:
A screenshot of the blocks showing how to:
-
Detect custom URLs inside WebView.
-
Extract the number from the custom URL.
-
Make a call using Activity Starter.
-
Request CALL_PHONE permission to ensure the app works correctly.
If anyone can share a screenshot of the blocks, it would be really helpful!
Thank you in advance!