So I am developing a Sencha Touch application in Windows. I want to test how this is going to behave on iPhone/Android/BlackBerry phones.
I'd rather not make it public just to test it by navigating to it from each OS physically, although I will be doing that before our official release. How can I emulate the phones on windows. Is there anything I can use to emulate Blackberry/iPhone on a windows machine just to test how the web page is going to be rendered in those devices?
I know the Android emulator I can run through Eclipse, but what about the other two?
You need a Mac to run the iPhone/iPad simulator. Blackberry can be done on windows though: http://www.blackberry.com/developers/downloads/simulators/
You might also consider delivering them to these devices as apps using phonegap, which plays nicely with sencha touch.
If you just want to see how the app would look and behave while developing, just use Google Chrome. You can enable the very good 'developer tools' to do various checks.
Install and run on Ripple Chrome Extension
Check out the number of devices / platforms it supports
...
...
iPhone 3G / 4
iPad
Nexus One
Nexus S etc..
In order to start developing applications using Sencha Touch, it is highly
recommended that you have a working web server where you can host your
application. It's possible to develop Sencha Touch applications, viewing local
folders with your web browser. Without a web server you won't be able to test
your application using any mobile devices.
You can run the application on your web browser by using:
http://localhost/your_app_folder
Using Safari web browser to examine your Sencha Touch application during
development, and the Safari Web Inspector is a huge part of that. Both Chrome
and Firefox have similar tools (Chrome Developer Tools and Firebug for Firefox),
but as iOS devices use Safari for their web browser.
Related
We are implementing a javascript library that uses the camera of the device on mobile web browsers. It was working well on Android using Chrome and some versions of the default Browser app. Since iOS 11 and Safari 11, we are able to access the camera on iOS too.
I was wondering if we can use this API to turn on the LED flashlight of the device. And in what platforms and browsers would that work.
I have a chrome extension running in my browser. I also have a Mac OSX app I wrote in Swift/Objective-c in Xcode. I am wondering how this chrome extension can talk to the Mac OSX app on the same computer.
I am aware of the Chrome Extension API, but do not know how I can capture the information from that is sent by Chrome in Swift. Does anyone know how to do this?
Thanks
There are two broad approaches you can take.
Native Messaging API. This does have the limitation that Chrome must launch the process (and communicate to it via STDIO) - you cannot attach to an existing process. The upside - the communication channel is pretty secure.
Your native app can expose a web server (or better yet, a WebSockets server) on a local port. The extension can then try to connect to this port and talk to your app. The downside is that anything (at least on the machine) can connect to your native app.
This is a frequently used approach; for example, 1Password or various IDE integrations work this way.
You could combine the two approaches to launch the app with a "launcher" Native Host if it's not running.
How does Google Chrome make a hybrid app (i.e. one that works on the desktop and one that works out of the Modern UI, and that are switchable)? What new Windows API do they call?
The only applications that can be "hybrid" are browsers. See here (link to Microsoft whitepaper on making a browser desktop and metro enabled).
I understand that for Multi-Touch support, we need to have a device in place for testing the Androind application.
In this context, I am wondering if I can do the testing of touch based actions on Android application through Android emulator which is running on a touch enabled Windows 8 laptop?
I'm not an authority on the topic, but I have installed BlueStacks and used Android apps with touch on Windows 8 without a problem. At least the basic testing can be done, but as to whether or not it's capable of doing refined or performance testing I'm not sure.
I've developed a web application which uses jWebSocket.
I've put it together on an Apache Server and accessing the site with a desktop browser works fine.
But it's not working on mobile browsers, that is, I can see the static website but no dynamic changes are made (using WLAN; on a laptop using the same WLAN everything works). The required ports can be reached but no connection is being established with the jWebSocketServer.
I've tested it on iPhone with Safari 6 and on Android phone 2.3 with WebKit browser and Opera 12.
At least Safari and Opera natively support WebsSockets, so I wonder if there's a general difference between mobile and desktop browsers regarding this functionality?
(On the Internet, I found nothing about mobile web apps with jwebsocket, there are clients for native apps but this doesn't suit my need.)
Thanks in advance!