Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

generic version #7

Open
ddksaku opened this issue Aug 9, 2016 · 1 comment
Open

generic version #7

ddksaku opened this issue Aug 9, 2016 · 1 comment
Labels

Comments

@ddksaku
Copy link

ddksaku commented Aug 9, 2016

Hi, Do you have a plan to make the plugin generic which does not depend on the Library Journeys API? For example, BackgroundBeaconMonitoring.startService will have just two callback functions.
Thanks.

@stephenrob
Copy link
Member

Hi @ddksaku

At the minute there isn't plans to do this although it wouldn't be too hard to do. The difficult part is that any use of a 'generic' plugin would require some coding from the end user to implement the RangeNotifier and MonitorNotifier interfaces setting the actions to do when a beacon is ranged or entered/exited.

This is due to how the Android app lifecycle works and how background services work on Android. Once the user has quit the app the javascript callback's can't happen as the cordova layer doesn't exist anymore and therefore all actions to happen on the range and monitor events need to be implemented down in the service layer - this is a bit different to how it happens on iOS.

If you can suggest the best way to make a generic plugin / what you see it doing i'm more than happy to take suggestions for that and evaluate the feasibility of them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants