Skip to content

Problem with advertising in Background #22

@mczeti

Description

@mczeti

Hi Ömer!

Im using your Discovery Lib for some matching app of mine and I have to say you did a great job :)
I am facing a Problem now with the background mode though.

Not sure if this is an issue on your side (I don't think so) but maybe you have experienced the same thing and have some answers or maybe a workaround.

So the thing is:
I'm using Discovery to successfully advertise the the phone as a ble device.
I find the device when both app are active -> OK!
I find the device when one device switches to background mode -> OK!
I also find the device when i didn't have it before and get close to the other one in background mode -> OK!

so thats all really great!

The Problem start when having the app in the background for longer than about 5-10 minutes.
In this case i cannot find the peripheral device any more. It doesn't advertise anything.
I tried analyzing with a BLE analyzer and i see the device for 5-10 minutes. then its just gone. :(

It seems Apple just suspendes the App and the advertisment of the bluetooth peripheral.

I would need the app to continue sending as long as it is not completely killed.
Do you have any Idea if there is a fix the that problem.

Every Feedback is very much appreciated!!

Thx in advance
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions