bkonyi / FlutterGeofencing

Rough work for Flutter geofencing plugin
BSD 3-Clause "New" or "Revised" License
337 stars 219 forks source link

Why create mContext in GeoFencingService? #59

Open spitfire55 opened 4 years ago

spitfire55 commented 4 years ago

Might be a dumb question, but I'm curious why mContext needs to be saved as a class variable in GeoFencingService? Since JobIntentService has its own context, why do you use mContext.startForegroundService in the onMethodCall function instead of this.startForegroundService?