cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
265 stars 318 forks source link

Question on android background handler #148

Open scriby opened 8 years ago

scriby commented 8 years ago

Hi, I took a look at https://github.com/cowbell/cordova-plugin-geofence#listening-for-geofence-transitions-in-native-code.

The part I am not clear on is how I can share context information between the app and the background handler. My goal is to post the data to an API endpoint, but in order to do so I need an authentication token from the app. Is there some way to share that information from the app with the background handler?

For instance, if I write the token to a file from the app, would the handler have a way to read it?

Thanks,

Chris