Blackberry Simulator and MDS - blackberry

Has anybody got the BB simulator and MDS simulator to work?
I have the MDS installed and 4 BB phone sim's. For some reason, when I first install the BB sim it might work and then it will stop working.
Has anybody had this issue and know how to fix it?

The first time I used both, BlackBerry JDE 6.0.0 and its version of MDS-CS, it worked very well. After a couple of simulator reloads to test a Browser-Push application, the 9800 simulator stopped connecting with the Mobile Device Service Simulator. All rules are important, but in my case, rule #3 allowed me to connect the simulator's internet browser after deactivating the WiFi connection
MDS should be running before you start the simulator; and it listens on port 8080, so make sure nothing else is listening on that port before you start it.
The simulator seems to pick up the MDS location from the rimpublic.property file (under MDS/config), which is part of the MDS install, and rimpublic.property needs to have the machine's fully qualified host name in it, not localhost.
If you've started your simulator without the MDS running, you will need to remove the .dmp files in [installroot]/[phonemodel]. This problem often happens with BlackBerry JDE version 6.0.0.
These rules seem to have work for me so far.

Well, there are several common mistakes when using MDS simulator with BlackBerry Simulator.
If you're opening network http connections you need to add "deviceside=false" parameter to your urls
In case you're behind proxy, you have to add several configuration parameters to enable MDS Simulator check them out here

I just spent 2 days trying various of the tips online about MDS (and there are many) but none helped me.
For me, the solution was to turn off network registration upon simulator launch in eclipse.
Edit: this has helped in some situations, but MDS still not always stable.
(posted in case someone with my problem googles to this page)

Related

iOS devices only visible to Xcode for a short time?

This is happening intermittently, but frequently iOS devices are connecting to my MacBook Pro (mid-2014) and then quickly disconnecting. Without any clear error or log to indicate why.
Where should I look for event logs that may help indicate what the underlying error is? I've tried to look through console logs for system events but I haven't seen anything that jumps out.
I've gone through many of the recommended solutions for Xcode not recognizing iOS devices:
Clean Project
Delete DerivedData folder
Restart Xcode
Restart the Mac
Restart the iPhone
Reset device permissions to re-trigger the "Trust Computer" prompt
Deleted iOS DeviceSupport folder
Alternated USB ports
Kill USB process
Deleted and re-installed the latest version of iTunes
Swapped out 4 different lightning cables
Tried 5+ different iOS devices with various versions of the OS
Went back to Xcode 8.2.1 to see if it was an issue with 8.3.1
Corporate IT reset my SMC this morning. I put in a request to have them disable Sentinel Agent to see if that's a factor, but it's not the clear culprit since other developers are still able to connect.
Very rarely, the connection will hold and I can use the device just fine. I have yet to determine what combination of astrological events leads to that case though.
Had the same issue and tried 10+ of the things you listed as well. Even tried uninstalling a few things that could have been interfering. As soon as I switched USB ports it worked and stayed connected. Turned out to be lint/dust in the USB port. A little duster in the port and it works like a charm. Sometimes the answer is so simple.
This is a disappointing solution, but IT reimaged my machine and the device connection has been stable ever since.
So if all else fails for you, start over.
Update:
This ultimately was narrowed down to an issue with Mobile Labs Device Bridge. Removing their launch daemons and restarting the system is the much simpler solve!

Phonegap has recently stopped working?

I haven't used it in a while until now but I cannot get it to work anymore even with a new, generated and unchanged, project. It worked perfectly fine before. It's been updated and the mobile app has been updated.. I've tried the desktop and CLI version.
Details:
Using Windows 10. Desktop App or CLI Phonegap.
Using iPhone iOS 9.0.2 mobile Phonegap app.
Using the basic, generated Phonegap Hello World.
What happens:
1. I serve the application.
2. I open the mobile app and enter credentials.
3. It sits on "Downloading" indefinitely
Note: If I open the URL in a browser on the serving machine it WILL open. If I open it on any other machine it will not.. This confuses me because they're on the same WiFi network so that has nothing to do with it. I even tried turning off my firewall in case the port was being blocked or something. I've tried 3000 and 8080.
Has anyone else experienced this?
I've uninstalled, re-reinstalled, used different versions, etc...
EDIT: I've found a solution, kind of.. If I use the --localtunnel flag it will work. I'm not sure why given that they ARE on the same network. Of course this also means that every single time I serve it is a different address which is quite a hassle. But at least I can test now.

AIR mobile debug - "Enter ip address or hostname"

I'm developing a mobile app using Flash Builder 4.6/AIR. I've been able to debug on the device (an iPhone 4s) just fine until now. I connect my iPhone to my mac with the USB corad, and debug.
All of a sudden I'm getting a black screen for close to a minute. Then I see the "Enter ip address or hostname" dialog. If I enter the ip address of my machine it doesn't matter. The window goes away for about 15 seconds, then comes back. Meanwhile, Flash Builder on my mac times out. The only way I can actually see the program running is if I hit 'Cancel' on that dialog. The app then launches, but I cannot set any breakpoints, cannot debug.
Everything I've found on the internet around this issue mentions it in reference to AIR for android -- not iOs. But I'm seeing it with iOs.
Anyone know what's going on here?
Thanks.
To make it easier for future readers, the official answer to this issue;
With the current (official) version of the AIR SKD (3.2) USB debugging is not supported on iOS devices. This is going to change with the future 3.3 release which (amongst others) adds USB debugging support:
"USB debugging for AIR iOS
This new feature allows the iOS developer to connect to the desktop via USB while debugging their mobile applications instead of relying on network connectivity."
With version 3.2, iOS debugging works over the local network, so both devices (the machine the debugger runs on and the iOS device) have to be in the same network so that they can communicate with each other.
See also the reply to What is the address of my Flash debugger?, it really helped me to resolve similar issue. Using 'ios-debug' mode was the way to go.
If you still have this problem using Android with the device connected to same wifi, try checking firewall rules. In my case FlashDevelop was blocked and I didn't suspected because of updates worked perfectly.

BlackBerry - MDS simulator init calls

I debug my BlackBerry apps on device emulator, using the MDS simulator for access to the web.
Today I ran a Wireshark trace to catch my app's calls. I saw 2 calls made by the MDS simulator before my traffic started, and hope someone can explain them to me.
http://www.blackberry.net/go/mobile/mds/http/mappings.xml
http://www.blackberry.net/go/mobile/mds/http/mappings2prop.xsl
They seem to return some settings possibly for the simulator.
What are these calls for?
I also wonder if these calls are somehow related to the poor performance of the MDS simulator that I deal with regularly - will the MDS simulator continue to work if this server does not respond?
Hope this makes sense to one of the BB experts here - thx.
Well, I have noticed this before, from my opinion i think it's a kind of request for blackberry server to open a port according to the proxy setting. Or it maybe as a log for connections. That is just my opinion I'm not an expert ...

BlackBerry simulator settings for VPN

I want to test a project from the BlackBerry simulator, but our webservice runs on an external server that can only be accessed using the vpn from our PC's.
I can access the webservice from the Android simulator without doing anything special. However I cannot access the webservice from the BlackBerry simulator -- not even from the browser of the simulator -- though I am able to connect to other services on the web from the BlackBerry simulator.
What kind settings are there to fix this?
There's a network setting for the simulator that might be useful for situations like this. You could try manually assigning the vpn ip address you were given.
/ip-address={string}
IP address of the simulated handheld. This should be left blank under normal circumstances. If running on a PC with multiple IP addresses, one can be specified here to cause the simulator to use it.
Cheers
Ray
Ok...anyone bumping on the same problem...
Append ";deviceside=true" to the URL from which data is to be fetched

Resources