Blackberry 10 Native - How to detect network events - blackberry-10

How can I monitor the network connection status on Blackberry 10 platform using C++ code?
Thanks

Related

iPhone With Windows - New Bluetooth Pairing is requested when logging into Windows even though pairing has already been completed on iPhone

iPhone With Windows 10 Enterprise Via Bluetooth Low Energy (GATT)
Bluetooth pairing is requested when logging into Windows even though pairing has already been completed. After that, even if the pairing is done, pairing will be asked again at the next login to Windows every time when the Windows is restarted.
Our iOS app acts as a Bluetooth central and the other as a peripheral (Bluetooth Driver on Windows).
when the app is trying to connect using Bluetooth Low Energy (GATT) at step 5 as mentioned below, new pairing is requested from windows every time when the PC is restarted.
Steps to reproduce the problem:
log into Windows and connect the app to the Windows computer
See the paring request on Windows and on iPhone,
Pair on both Windows and iPhone
Turn off the Bluetooth toggle on iPhone and then turn it on
Restart windows and see the login screen
Start the app on your iPhone and try to connect,
See the paring request on iPhone
With the above steps, if this issue is not reproducible, try rebooting the iPhone instead of changing the Bluetooth toggle at S4.
we also observe the iPhone device is receiving this log from Windows:
default 15:38:27.555377+0530 SpringBoard Received request to activate alertItem: <SBUserNotificationAlert: 0x105916a90; title: Bluetooth Pairing Request; source: bluetoothd; pid: 88>
We observed that looks like the issue reproduces more consistently when the windows restarts or reboots.
On the pairing request alert dialogue on iPhone, If I press "cancel", the app disconnects from the peripheral (Windows). If I press "pair", the peripheral nothing happens. However, Windows continues sending me pairing requests whenever the machine is restarted or rebooted.
We did not observe this behaviour with the Android Device. Windows and Android work without any problem (i.e. No new Pairing is requested once the device is paired in any situation).
In the below screenshots, we could see that the iPhone is already paired in Windows Bluetooth Settings but the Paring is requested from Windows on iPhone to pair again and in the background, our app is successfully connected to Windows using Bluetooth Low Energy (GATT).
Environment:
Windows details
Edition Windows 10 Enterprise
Version 22H2
Installed on β€Ž 5/β€Ž5/β€Ž2021
OS build 19045.2486
Experience Windows Feature Experience Pack 120.2212.4190.0
iPhone OS - iOS 15.6.1 and 16.1.1
Is this a known bug with Windows 10 Enterprise?
Is there any way to get around this issue?
Sample Code to reproduce the problem on iOS:
Our iOS app acts as a Bluetooth central and the other as a peripheral (Bluetooth Driver on Windows)
Initializes the central manager with a specified delegate and dispatch queueself.cbManager = [[CBCentralManager alloc] initWithDelegate:self queue:bleManagerQueue];
Scans for peripherals that are advertising services to discover other Bluetooth devices, passing in the UUID of the service it’s searching for.
[self.cbManager scanForPeripheralsWithServices:(NSArray<CBUUID *> *)serviceUUIDs options:(NSDictionary<NSString *,id> *)options;]];
When the central manager discovers a peripheral with a matching service UUID, The method saves the peripheral as the property discoveredPeripheral and calls connect to it.[self.cbManager connectPeripheral:
[[self.currentConnection device] peripheral] options:nil];
Step 3, when trying to establish a connection to a peripheral, pairing is requested even though pairing has already been completed. After that, even if the pairing is done, pairing will be asked again at the next logon to Windows.
Is this a known bug with Windows 10 Enterprise?
Is there any way to get around this issue?
iPhone Already Paried
Pairing Request on iPhone from Windows
Is this a known bug with Windows 10 Enterprise?
Is there any way to get around this issue?

FreeSwitch voice delay on Android

Currently, I am building mVoIP service for Android. I chose FreeSwitch as a SIP server, and there is no problem talking through PC. However, all Android open source make voice delay. Here are data we faced so far.
Case 1 - FreeSwitch + PC
FreeSwitch 1.2 Stable version
Linux CentOS 6.5
Xlite Softphone for PC Windows8
Voice delay - less than 50ms
Case 2 - FreeSwitch + Android Sipdroid
FreeSwitch 1.2 Stable version
Linux CentOS 6.5
Sipdroid for Android
Voice delay - 80 ~ 200 ms
Case 3 - FreeSwitch + Android Csipsimple
FreeSwitch 1.2 Stable version
Linux CentOS 6.5
Csipsimple for Android
Voice delay - 150 ~ 400 ms
Case 4 - FreeSwitch + Android SipDroid ==> PC
FreeSwitch 1.2 Stable version
Linux CentOS 6.5
Sipdroid for Android
Xlite Softphone for PC Windows8
Voice delay - 50 ~ 100 ms
Some of Android mVoIP applications, such as Skype, make less than 50ms voice delay. We've tried many SIP open sources for Android, but all of them make horrible delay. We are looking for a open source that make less than 50ms for Android. Is there someone who can solve this issue? Thank you.
Is it maybe Android device is slow to encode and decode audio sound?
it's a known problem with CentOS 6. You need to choose a different distro (Debian works fine with me)
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide#Release.28es.29_6_and_Later

Start service in blackberry 10 application

Hi I am new to Blackberry 10 application development and I am developing an application that can run as a service in background and start another application at particular interval. I want to know is it possible to create services that can run in background?
Running application or any service in background is currently not supported by BlackBerry 10 sdk.
It will be supported in upcoming sdk release. Check out Headless apps in roadmap
read the documents that describe Android features that are not supported by the BlackBerry Runtime for Android apps on BlackBerry 10. =)
Software Features
No support to run services in the background. Applications can run
services only while the user runs them, either in fullscreen or in
thumbnail mode

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

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.

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.