I am trying to develop a PhoneGap app for the iOS. Is it possible to implement a WebSocket server and client in the native part of the app (in Xcode) to create a way for two instances of the app in different devices in a local network to communicate? The end result of the app to be developed is something similar to the app Air Sketch.
Other suggestions are appreciated. :)
Related
I have a web app and have built a respective Electron app for Windows. I want to do the same thing for both IOS and Android without dealing with stores. The app is fully web but it will be hosted only locally, both front-end and back-end. So every client will have its own server in its own intranet.
The problem is that I do not want to open the local IP in every client browser and do 'Add to homescreen' manually.
The ideal approach would be to have an automated way to create and install the PWA on various local IOS, Android devices just as you would install an application in Windows.
My question: Is it possible to automatically create a PWA without having to go through the manual 'Browser' way?
We are facing following issue while integrating google map with phonegap windows build
An app can’t load remote web content in the local context.
The same code is working for Android and IOS platform,
We tried to use Iframe for this, not able to get through this, anybody has any information regarding this, how to solve this issue.
We followed following url to test it.
http://www.creepyed.com/2012/11/how-to-use-the-google-maps-api-on-windows-8/
The app is working fine when we run it from local machine as the target, When we deploy the same app in windows phone lumia it is not able to include google map api, it shows the "An app can't load remote web content in the local context"
Thanks
Mohsin
I am trying to develop an HTML5 app to be ported to native via PhoneGap. Is it possible for the app to be able to act as a server on a mobile device, with the same app on another mobile device acting as a client and connecting to the former? This is all within a local network.
I am new to PhoneGap and I understand that most server implementations are on platforms such as node.js or PHP and that PhoneGap only supports HTML, CSS and JavaScript. I think I might be partially wrong here as there are various plugins that could help ease the abstraction between PhoneGap and the native developer.
Other alternative suggestions are very welcome :)
What exactly are you trying do by having a client/server app? I think your best bet would be to have one app that posts and gets info to your own webserver (not an app). Therefore, that one app can act as a server by "publishing" information to the server and the other can act as a client by only reading from the server.
New to iPhone dev here. Just wondering what's the best way to connect an iPhone app frontend (based on Cocoa touch ) to a php/MySql based backend?
The iPhone application will frequently access and change data stored on our server.
Read about mysql framework and MCPKit framework but these are for cocoa not for cocoa touch.
so can I access mysql based backend without any web service on server side.?
Many thanks
You can create a REST Api for your PHP/mySQL. Something like this
https://github.com/gilbitron/Arrest-MySQL
Then on the iOS side of things, you can use something like AFNetworking, to make requests to your server.
https://github.com/AFNetworking/AFNetworking
I am trying to implement a Phonegap (HTML5) application which connects to a Websocket server (running in an embedded device, also has Bonjour service) to exchange data within home network.
I would like to know the best possible way of detecting the server IP using Phonegap. I have explored and found that Titanium and Quickconnect support Bonjour. But I would like to stick to Phonegap for various other reasons.
Any alternative way of detecting the server IP within the local network is also okay.
Need your suggestion.
There are two iOS Bonjour plugin implementations for Phonegap (Cordova) on Github:
https://github.com/jarnoh/cordova-dnssd
https://github.com/SayGoSolutions/Cordova-BonjourBrowserProxy
Unfortunately I haven't found a cross-platform implementation.