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?
Might be a dumb question, but I'm curious why mContext needs to be saved as a class variable in
GeoFencingService
? SinceJobIntentService
has its own context, why do you usemContext.startForegroundService
in theonMethodCall
function instead ofthis.startForegroundService
?