Hello,
Would you can share the service, please?
Hello,
Would you can share the service, please?
hi @Sumeet123, I am trying to create a location based application in ionic2 with the same plugin. Please tell me how do you test the location update? My application stops every time i open some other application in my device though i have enabled background mode on pause. PLease help
Hello sumeet123 if you donât mine can you share the code?We are also looking for same functionality?
I get the error âTypeError: undefined is not an object (evaluating âwindow.backgroundGeolocation.configureâ)â by trying this plugin. can you help me? what to do?
See the plugin.xml change clobers target
Previously:
<js-module src="www/BackgroundGeolocation.js" name="BackgroundGeolocation">
<clobbers target="window.BackgroundGeolocation" />
</js-module>
New:
<js-module src="www/BackgroundGeolocation.js" name="BackgroundGeolocation">
<clobbers target="BackgroundGeolocation" />
</js-module>
in .ts file declare
declare var BackgroundGeolocation:any;
@component
Now you can use the all methods what ever they mentioned in that doc.
I hope this helpsâŚ
Check this one we have already ionic native background geolocation plugin.
if use this one you can directly access the plugin using import.
may this will help you alll
i have also tried same code but onactivate function is not fire in i am in background?