Call Automation in iPhone - javascript

Is it possible to simulate call procedure in an iOS App using any script.
Launch Phone App
Pres Key Pad
Dial Numbers
Press End call
Gone through the following link.
IPhone Automation
I am looking for commands similar to adb commands.
Like the following command
adb shell am start -a android.intent.action.CALL tel:123456789
I tried using the following code to dial the call from the App
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel://123456789"]];
Now I get different view, Is it possible to access the elements in this view from Javascript ? I would like to end the call after 5 seconds by simulating the End button
touch using some script. Is it feasible ?
Is there any API to accept and reject calls within the App?
I searched for this earlier but did not find any API.
I want to try it as an internal app and I don't want to submit in the AppStore and I am looking for non jail broken devices.

No, there is no API to interact with any of the phone features on an iPhone, other than openURL:

Related

How enable google chrome browser to run local commands in Windows?

I am using a web development tool called Oracle APEX 21.1 to create an app which will run on the web for some users and as desktop app for other users. The application runs in a browser in both cases. My problem is with the users that will use it as a desktop app. Sometimes I need to run a local file or run a specific program from the computer the user uses to run the app. The user is instructed to use google chrome to use the app. My question is, is there a setting of google chrome that I can set to allow my app to access local files or run Windows commands? Is there any other way i.e an add-on? If not, is there any other browser that can do the job? P.S: In my app, I can make use of JavaScript, JQuery, Oracle PL/SQL. Of course, a browser simple setting to set is the best option for me, if any.
in browser you you have to do use "href" string like this :
window.location = "notes:///server/file";
"notes:///" program name
And "server/file" parameter for programe

Android ADB from JavaScript Webpage

I have a problem with a simple web app on android.
I simply have to make a web page in JavaScript that prints messages or performs callback functions based on the key pressed.
The problem lies in the device on which it should run, that is an Android TV and the keys to which I should associate callback function are those of remote control. The TV manufacturer told me that the only way to get information about the buttons pressed on the remote control is through ADB, specifically through the command “adb logcat”.
So my question is: is it possible from JavaScript in the browser to read the output of the command abd (adb logcat)? Or in some way have the information returned by ADB on the web page?
Thanks in advance.

detect all installed apps from Safari

I'm trying to detect all installed apps on an iPhone from Safari.I have a list of 3000 URls scheme.From a WebView and using javascript, I want to loop this list and save the excitant apps (URls scheme that have a response) .Is that possible?
Simply not possible, as #rckoenes said, it would launch each app you call - therefore halting your browser instance - and looping through that many URIs even if it did return a value rather than launching the app would probably make you no friends. there are ways and means of detecting if YOUR app or AN app is present and launching it via smart meta banners or look at this project: https://github.com/hampusohlsson/browser-deeplink

Android javascript api silent mode

I am writing an app that works a bit like 'do not disturb' but with a timer.
So I want to set the phone onto 'silent mode' for a while and then switch it back to the original volume.
I also want to keep the app running (i.e. keep screen on) for the duration of the timer.
But I want to do all this from an HTML5 / Javascript app.
Is this possible with the javascript api? Or any html5/js toolkit?
It should be possible to do with Javascript in a WebView. With WebView.addJavascriptInterface() you can insert a object from your Android code which you can call to from your Javascript code that is running in the WebView.

web app on mobiles with phonegap

I have a web application (chat room) in html + javascript that basically sends requests to the server every 5 seconds to check for new messages.
It already works on mobile but there are 2 main problems:
it does not beep (it works on pc) with new messages
when the browser is put on background, the javascript obviously stops being executed, therefore the connection to the server is lost and the client disconnected.
i was thinking of using phonegap not only to make it cross-platform but also to fix those problems stated above. would they be resolved with the use of phonegap?
thank you in advance.
phoneGap doesn't support custom push notification. it basically open a browser and expose you some native support via API.
in order to do some native actions like push notifications and/or sound playing i suggest you check out some of the plugins options available or even write your own for that.
Playing sounds can be done easily using the Media API. As for having the JavaScript run in the background it really depends on the OS. On Android the JS will continue to run if you leave the app via the home button but the back button kills the app so you would stop the JS. It is probably better to write a service that always runs in that case.
Alternatively you'd look at a push type solution to notify you of new messages.

Categories