I am trying to connect to an rtmps endpoint in AIR.
The code looks like this:
private function onCreationComplete():void{
var conn:NetConnection = new NetConnection();
conn.connect("rtmps://someserver.com/someapplication");
conn.proxyType = "best";
conn.addEventListener(NetStatusEvent.NET_STATUS,statusHandler);
}
private function statusHandler(event:NetStatusEvent):void{
var conn:NetConnection = NetConnection(event.target);
trace(event.info.code);
}
This actually works perfectly when running the app on the desktop in ADL (emulator).
However when I install the application (.ipa) on the iPad, the connection fails.
Both my desktop and the iPad connect to the same wireless network (thus use the same network architecture to connect)
Has anyone experienced this kind of behaviour before?
Cheers
This is still a problem with Air 3.1.
I have raised a bug report with Adobe - https://bugbase.adobe.com/index.cfm?event=bug&id=3133542
After some serious efforts to figure out what was wrong here,
We were unable to establish a connection to our server via rtmps.
Regular rtmp seems to be fine but is not unfortunately not an option for us.
*EDIT*
This problem was solved in the AIR 3.1 release.
Turns out connecting via WIFI + Proxy via RTMPS was failing for iOS.
Check out the AIR 3.1 release notes for more information on this.
We establish connection to the server only through the RTMP protocol.use rtmp instead rtmps,the connection can be established.
Related
I migrated Worklight 6.1 project to Mobile First 7.1
In 6.1 all builds(Android, Iphone and Windows) working fine but in 7.1 Iphone build is not working.
I given connectOnStartup : true to check connection with server.
Whenever I am going to launch Iphone build its giving error "The sever was unable to process the request from the application. Please try again later".
But for Android build is working smoothly. Observed migrated Iphone build not getting internet access(Slider images on landing page are not loading even though their path given as url) but device has full high speed internet access.
Below things taken care:
There is no internet problem
Both iphone and server reside in same wifi network
Tried with making Customize URL in iphone
I given connectOnStartup : true to check connection with server.
This is a deprecated API and you should stop using it... Instead use the WL.Client.connect API if you really need to connect to the server on startup...
As for the connectivity issue, I suggest that you will check for the following:
You say you're making a "customized URL". I suggest that you will confirm you're actually using the correct URL for your server
Verify that in wlclient.plist you indeed have the correct server settings
If you are testing on iOS 9 or above, make sure your server is TL2 1.2-ready and your iOS application is configured for ATS: https://mobilefirstplatform.ibmcloud.com/blog/2015/09/09/mobilefirst-platform-support-for-ios-9/
I am going to catch tcp packages by using Charles when developing IOS app, but it failed to catch anything when the app running in the simulator.However everything works well when I using safari or other apps both in or out of the simulator.So it seems that only my app in the simulator has this problem.
I have tried this https://www.charlesproxy.com/documentation/faqs/ssl-proxying-with-ios-9/ ,but it didn't work.
Please do me a favor. Thanks
Well...It seems that Charles is unable to capture tcp package, it is designed to capture http/https traffic instead...
Wireshark may be a good choice BTW.
I am creating Rails server for iPhone app.
I want to debug on iPhone device not on iPhone simulator.
So, I connect iPhone to mac book air by USB, and connect to Rails server.
But, iPhone could not connect to Rails server.
Environment
Rails 4.2.3
Server localhost:3000
Xcode 6.4
iPhone iOS 8.4.1
en0 inet 192.168.11.7
As long As I searched, when iPhone device connect to localhost server, the url is http://192.168.11.7:3000/~.
But, mac console show nothing and xcode show "The request timed out." after a while.
If anyone know how to fix the problem, please tell me.
Use the wonderful http://xip.io/
You don't need to install anything - just go to
http://192.168.11.7.xip.io:3000
on your phone.
If you want to use a particular domain name, eg if your app behaves differently depending on domain names or subdomains, you can do eg
http://mydomain.foo.192.168.11.7.xip.io:3000
EDIT: my answer is actually about connecting to your server over the internet rather than a usb cable. I'd recommend that you use the internet rather than the USB option if possible as it's simpler. xip.io will not work if you can't access the internet.
You probably tried that but funny enough, in my case turning my iPhone off and on again actually fixed the issue.
I had the same problem, my app was working fine and all of a sudden it stopped working although nothing had changed. I could access the internet, the browser was accessing the rails app url just fine but my iOS app did not seem to be able to connect to it.
I needed to run my iOS app from Xcode with my local rails server to my device and xip.io was the solution.
Get the ip address of your computer from the wireless network you are connected to and put that into networking.swift like so.
http://11.1.11.100.xip.io:3000
Make sure the rails server is running and your device is connected to the same network as your computer and build the app.
my problem is about not being able to access an https server after switching from wi-fi to 3g.
The error I get is Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server.
i tried the same thing using ASIHTTPRequest and AFNetworking libraries, both have the same thing.
i'm guessing the problem is about trying to use the same ssl credentials even though our ip is changed as a result of network switching. strange enough, this problem does not happen if you switch from 3g to wi-fi.
some notes:
i'm using an iphone 4 device.
device has ios 6.0 installed.
server side has apache php installed.
has there been somebody encountered this before? can i somehow clear any stored ssl credentials on ios cache? any thoughts on the subject?
The problem turned out to be a dns issue. Somehow working ip address was cached in wifi network but not in 3G network I think.
hi all i have made application for blackberry .it is working on my Blackberry 8310 device .i m using vodafone Blackberry dataservice in 8310 and app working fine .but when i install this app in my 9550 and i want to used this app using wifi but i app not working using wifi so what is the reason for that. ? therer is any extra setting for wifi ?
From your question it looks like you haven't heard about network transports. If this is the case, then it's a miracle your app worked OK on the first device! :)
Network transports is a BB specific concept. Check Connecting your BlackBerry - http and socket connections to the world. Basically you end up with a url that is appended with a specific string that tells to the BB internals what network transport to use.
Try this:
HttpConnection httpConnector = (HttpConnection) Connector.open(url + ";interface=wifi");