i am developing react natuve application for over 2 years now and have some experiance with IOS development. So after searching the web for possible ble libraries for react native i didn't find a library that does what i need...
So i decided to give it a shot and write some native code.
My goal is to create an application that act as ble peripheral while the application is in the foreground/background
I went into some research on how it should be done on IOS, the limitation and etc. And than I looked into some tutorials on this subject and managed to create an application that act as peripheral while in the foreground but as soon as i move the application to the background the application stop the ble transmission.
I tried to work with IOS background task but again with no luck.
I am surely missing something...
Can i write a code that act as peripheral while app in background ?
update:
This is my startAdvertising function:
peripheralManager.startAdvertising([CBAdvertisementDataLocalNameKey : "CoolBleApp", CBAdvertisementDataServiceUUIDsKey : [serviceUUID]])
Also is it possible to send serviceData in IOS?