Finding devices on network with Bonjour / Zeroconf / jmDNS on PlayBook / Blackberry - bonjour

I would like to develop an Android app which would run on
Blackberry PlayBook. App would need to find other
devices on the local network running the same app.
I was thinking to implement Bonjour / Zeroconf / jmDNS
protocol for finding devices but ...
i just learned that android permission
android.permission.CHANGE_WIFI_MULTICAST_STATE
is not supported on Blackberry or PlayBook. (Preference is
needed for jmDND (Bonjour) protocol to work.)
https://bdsc.webapps.blackberry.com/android/apisupport/
Can you give me some suggestions what would be the best way
to achieve this on PlayBook. Are there any alternatives?
Is Bonjour possible if building with native SDK or Adobe AIR?

Unfortunately, there is no native support for Bonjour / Zeroconf on PlayBook yet, check this thread

You can try mDNS Service Discovery at Blackberry world.
Here is copy of description:
mDNS Service Discovery is based on the Avahi open source project. It is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. This enables you to plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared. Compatible technology is found in Apple MacOS X (branded Bonjour and sometimes Zeroconf).
The source code is available on the BlackBerry GitHub portal.
mDNS Service Discovery is a part of PlayCloud application - used to find printers.

Related

Install a progressive web application (PWA) on the phone without a network

Is it possible (e.g. when developing) to send a pwa to the phone someway e..g. via usb cable without the network and serving it in https?
The use case is development, when maybe a wifi network is not available or unpractical to set up.
If your APP is fully PWA compliant, the app added to home will be an installed APK, which you can extract using file explorer(I used ES File explorer) and put it in other devices using USB connection and adb install myapp.apk for installation.
After you load the apk, it would anyways make calls to your web-server which I'm not sure how it make sense to achieve without network connection though. I couldn't think of any reason to develop a mobile application as PWA without network. You can even have a pass though internet(sharing your desktops internet via USB) by connecting via USB if wifi is not available. But developing PWA with absolute no network mode is not practical.
Update: While you can generate the APK and side load it via USB in the above mentioned way, transferring the cached assets(HTML/CSS/JS/images) might be tricky. You may have to wrap your app as a plain cordova application or Ionic kind of PWA app which uses Cordova to wrap and build with your assets. This way, your APK will be having everything it needs to run for calculator kind of use case.

AWS Device farming services issue for react-native app testing. Need to test the app on multiple android and IOS devices.

Is there any service which supports device farming to test the test suite on different devices. I am facing this problem as AWS (Amazon web services) does not support device forming for react-native apps.
Need help! Please inform or suggest if some body is using these kind of device farming third party services for testing the detox test cases.
I work for the AWS Device Farm team.
Here is one way to test react native apps on AWS Device Farm using Espresso.
https://www.slideshare.net/AmazonWebServices/device-testing-with-aws-device-farm-89135178
The central idea here is to use the Espresso recorder functionality to work for react native apps.
Hope that helps.
AFAIK there's no cloud service with Detox support yet, but you can write your tests in Appium to test both platforms - you just need to fire separate test run for each platform, but the Appium tests can stay same.

Call web service running on Parallels from iPhone connected via USB

I can request a web service running on IIS Express/Parallels from Mac OS with...
http://windows:57239/api/hello
This works fine from the iPhone simulator, but not from an iPhone device connected via USB, when debugging in XCode.
Is it possible to make this work? I would like to debug my API with in-app purchases.
I switched my Parallels instance to Bridged networking mode and let the Wifi's DHCP assign an IP address to it. Then I used this IP address from the iPhone app.
Not entirely satisfying because the IP will vary, but its very cool having an iPhone trigger a break point in Visual Studio running on a virtual instance of Windows.

Blackberry: Access Blackberry desktop manager and install application programmatically

I want to know using my desktop application can i access Blackberry desktop manager (or) any USB interface programmatically to load(install) a blackberry application into blackberry device? Basically i want to load(install) any blackberry developed application to the device using my desktop application interface.
Any help would be appreciated.
Thank you.
There is no BB Desctop API to install application:
BlackBerry Desktop Software - 4.1 - Desktop API Reference Guide
Similar questions:
Install/Uninstall App from Desktop Manager
SO - How to properly force a Blackberry Java application to install using Loader.exe
BB Forum - How to properly force a Blackberry Java application to install using Loader.exe
UPDATE
You can send data to device, but to open named channel you will need running application on device side which will register and operate with same-named channel... although there are speculation about "using RIM API calls to compose *.cod file directly in device internal memory." I have no idea how to do this without installing any app on device previously.

Does Bonjour networking work on ppc running 10.4?

I developed an application for Mac 10.5 desktop which communicates with iPhone over wifi using Bonjour service, and it is working fine on Mac 10.5 and able to do required syncing with iPhone over wifi using bonjour.
But same desktop app (although I recompiled for ppc 10.4 and there were some changes in coding like #property needed to be removed, etc.) doesn't work on ppc running 10.4.
I tried in both scenario:
1. Let Desktop be the server and iPhone will find service, published by desktop
2. Let iPhone be the server and desktop will find service, published by iPhone
but in both case I don't get success, either desktop not able to publish service or not able to find service.
Please let me know, if you also faced this type of bug and found some solution in this.
Also if you need more explanation, just ask me.
Thanks,
Sanniv
Bonjour does work in 10.4, even PPC, so it seems like you have a Tiger-specific bug in your code.