Test local html/javascript files on IOS on Simulator - javascript

I want to test some responsive web pages using touch events on IOS simulator, is that possible ? If yes how can i do it ?
Any recommendations are the most welcomed.

I would recommend using Mamp to set up a webserver on your local box. Then in the IOS simulator point safari to the local server.

Related

Web application hosted on Firebase works on Android but doesn't work on iPhone

I'm developing a web application, this application is supposed to work on Android and iOS. I wrote the code in JavaScript and used OnsenUI and JQuery. I use Firebase Real-time database and the application is also hosted on Firebase.
The problem is that the application works properly on Android and also on Chrome both on Windows and macOs but when I try to run it on an iPhone it doesn't work (neither on safari nor chrome). When I run it the UI loads but isn't filled with the data downloaded from the database.
What could be the problem? This is my first web application so I don't have any experience.
Thank you!

MeteorJs mobile-config settings for landscape only?

I am developing an app for tablets (android and iOS), I am looking for some kind of settings in mobile-config that disable landscape orientation. I know how to do that on iOS by changing some settings on XCode but is their any setting that can do it for both android and iOS.
This only works for android not iOS device
App.setPreference('Orientation', 'landscape');
Also is it possible to deploy a meteor app just for ipad, i mean now you if deploy it with below command it make it for any ios device. Can i be specific so that it makes only for ipads
meteor deploy your-desired-app-hostname.meteor.com
meteor build ~/build-output-directory \
--server=your-desired-app-hostname.meteor.com
After searching on the topic i came to conclusion that its an open bug and only way to prevent portrait mode on apple's ipad is by manually editing the settings through XCode.
You can check out but here

PhoneRTC Swift update causes no audio on ios

I've built iOS and Android versions of the PhoneRTC project. 1 Android device (KitKat 4.4) and 1 iOS device (iphone 4, iOS 7.1). Both connected to private lan 192.168.1.x. Also, tried TURN server and confirmed successful TURN server messages in server log.
After fixing Swift compile errors on iOS (NSURL and Regex). All compiles and seems to work without throwing errors. Here's my problem and humbly ask for someone's help.
Audio comes through Android just fine, sounds great. So, iOS microphone records/sends audio successfully to Android and is rendered to Android speaker.
Android permission for the microphone is enabled, however the sounds does not arrive on the iOS side. Nothing is heard on the speaker.
Am I missing something here?
Update: I've confirmed that it is the Android library not sending the microphone audio. iOS to browser works fine. Will add issue to Github.
Cheers.
Rich
The issue was fixed in this commit:
https://github.com/alongubkin/phonertc/commit/8bf270014cdfe6acc6d2cb9aeee624c2d9e39536

Phonegap.js is not found

I have a problem with my Phonegap application. I got a 404 error on phonegap.js
I understand that the compiler (I'm using Phonegap build) will replace the src of my phonegap.js by the real path but I don't get that.
It's weird because I have all the other scripts loaded but not this one.
This screenshot is from Safari, debugging my application launched on my iPad to give you more details.
I'm using Phonegap 3.1.0 with an iPad Retina 64 bits with iOS 7.0.
Edit: I can't use Phonegap 3.4.0, Phonegap build is still not supporting it.
Thanks in advance !
Think of phonegap.js as the runtime. It only exists when your app is running on a device.
If you are previewing your app on a local web server, you will get 404 because the local runtime is not your device (its your laptop).
To solve this, developers have invented tools like PhoneGap emulate (http://emulate.phonegap.com/) where you can use an emulator to 'mock' certain behaviors in your local runtime that would occur on a device.
Thanks guys but the problem wasn't related to Phonegap. I copied from our desktop version and that created the problem. And as I wrote in my comment, the screenshot is from Safari debugger for my iPad, not from a browser tab.

Can we access device photogallery from mobile device browser

In my project as per client we need to access and upload picture from photo gallery to site. It is for iOS, Android and blackberry. I know we can access it for android using opera browser but my question is can we access it for all mobile device and from any device browser.
Yes, in fact iOS even has multi-upload functionality built in as well. I'm not sure about blackberry, but I'm almost positive that any mobile device has this feature. The best thing you can do is just more research online and testing on them.
HTML(you don't need javascript to do it)
<input type="file"/>

Categories

Resources