Beacon, how continue to do job even if App is closed


#1

Hi, I’m new in Nativescript,
I’m writing an App that can discover beacons in nearby… but i want that the app continues to check for beacons even if is closed… And if it finds a new beacon, it alerts you with a local notification.

What is the correct way to run the search job even if the app is closed?

Thanks to all those who will give me an answer