Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Works only when the application running the front #2
Comments
|
Unfortunately, no. Here's how Apple describes it:
|
|
@williamtran29 I think there are still ways. Check this. Android unable to detect iOS when iOS app running in the background. I think I'm missing something |
|
Core Bluetooth Background Execution Modes If your app needs to run in background to perform certain Bluetooth-related tasks, it must declare that it supports a Core Bluetooth background execution mode in its Information property list (Info.plist) file. When your app declares this, the system wakes it up from a suspended state to allow it to handle Bluetooth-related events. This support is important for apps that interact with Bluetooth low energy devices that deliver data at regular intervals, such as a heart rate monitor. There are two Core Bluetooth background execution modes that an app may declare—one for apps implementing the central role, and another for apps implementing the peripheral role. If your app implements both roles, it may declare that it supports both background execution modes. The Core Bluetooth background execution modes are declared by adding the UIBackgroundModes key to your Info.plist file and setting the key’s value to an array containing one of the following strings: bluetooth-central—The app communicates with Bluetooth low energy peripherals using the Core Bluetooth framework. The bluetooth-central Background Execution Mode Although you can perform many Bluetooth-related tasks while your app is in the background, keep in mind that scanning for peripherals while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is scanning for device while in the background: The CBCentralManagerScanOptionAllowDuplicatesKey scan option key is ignored, and multiple discoveries of an advertising peripheral are coalesced into a single discovery event. The bluetooth-peripheral Background Execution Mode In addition to allowing your app to be woken up to handle read, write, and subscription requests from connected centrals, the Core Bluetooth framework allows your app to advertise while in the background state. That said, you should be aware that advertising while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is advertising while in the background: The CBAdvertisementDataLocalNameKey advertisement key is ignored, and the local name of peripheral is not advertised. |
|
Any solution to this yet? I need iOS advertising in the background state to be detectable by Android scanning in the foreground.
Does this work? |
|
Did anyone find a solution for this package to make it work in the background ? Please guide me on this if you have a solution |
How to make broadcasting to work even when the application running in the background?