This is a migrated thread and some comments may be shown as answers.

How to use this plugin in telerik app builder .?

1 Answer 176 Views
AppBuilder in-browser client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nitesh
Top achievements
Rank 1
Nitesh asked on 22 Jun 2014, 04:22 PM
Hello ,

We are working for good cause making application for women safety , so i need one application when i click on button then location tracing start and when i close the button then it should stop tracing. 

so i got one plugin i think we should do this. https://github.com/christocracy/cordova-plugin-background-geolocation

1. i used this plugin in telerik appbuilder  but am not able to get location of by this plugin.
2. i am able to get location by standard method navigator.geolocation one but i want location by this plugin.
3. it works in background perfectly but when i press back button it app stop working but tracing starts

main concern is how to get location by this plugin not by standard plugin. 

please try this and help me. i will be very grateful of this.

Waiting for your reply.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 26 Jun 2014, 10:56 AM
Hi Nitesh,

I was able to use this plugin in an AppBuilder app following the steps for importing custom plugins. I then followed the example demonstrated in the plugin repository to configure and start it. I tested the app on an iOS device so please have in mind that my configurations are targeting that platform and you may have to further configure the plugin to work in an Andorid environment.

I attached the sample I prepared for your convenience. You can run it on an iOS device following thes tutorials. Basically, the app is defined to start the BackgroundGeoLocation plugin as soon as Cordova is fully loaded. Then if I hit the home button to put the app in a background mode it keeps tracking the location so that as soon as I bring it back, it logs the location coordinates. Looking at the plugin information, I believe you should also be able to log the location info on a server but I have not tested this functionality and I would therefore recommend contacting the plugin author in case you have any issues with that.

I hope the project will help you get started with your task.

Regards,
Tina Stancheva
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
AppBuilder in-browser client
Asked by
Nitesh
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or