lokeswarreddy cherlopalli
Posts: 0
Joined: Wed Nov 12, 2014 8:26 pm

Geolocation plugin problem

Hi Evgene,

In above diagram i seen that repo,adobe, some other folder, iam not get clarity on this please you can explain me in clarityly i need extra softeware for except adt.

Thanks&Regards
Lokeswar

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation plugin problem

Hello @lokeswarreddy cherlopalli!

Could you clarify your question please?

lokeswarreddy cherlopalli
Posts: 0
Joined: Wed Nov 12, 2014 8:26 pm

Geolocation plugin problem

Hi Evgene,

can you please send me that background plugin i am not understand that Crastocray devolaped plugin please sengd me ur plugin to me please

Thanks&regards,
Lokeswarch

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Geolocation plugin problem

Hello Lokeswarch,

The plugin I spoke about is integrated in Appery.io and I can't send it to you.

lokeswarreddy cherlopalli
Posts: 0
Joined: Wed Nov 12, 2014 8:26 pm

Geolocation plugin problem

Hi friends,
Please any one help me on this issue controler not enter into thjis block

if (window.plugins.backgroundGeoLocation) {
app.configureBackgroundGeoLocation();
}
why it is not enter here
i am using that Craystocray plugin i use as same which is provided in his plugin but it is not working

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Geolocation plugin problem

Lokeswarreddy ,

Could you please clarify, on what device with what OS do you test? Where do put this code?
window.plugins.backgroundGeoLocation (like all other phonegap plugins) is available only after the device ready event.

lokeswarreddy cherlopalli
Posts: 0
Joined: Wed Nov 12, 2014 8:26 pm

Geolocation plugin problem

Evgene,

I am using samsung galaxy,os is android

Thanks&regards,
Lokeswar

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation plugin problem

Hello!

And where did you add this code?

lokeswarreddy cherlopalli
Posts: 0
Joined: Wed Nov 12, 2014 8:26 pm

Geolocation plugin problem

Hi maryna,

i am used that code in index.js function like this
onDeviceReady: function()
{
app.receivedEvent('deviceready');
if (window.plugins.backgroundGeoLocation)
{
app.configureBackgroundGeoLocation();
}
},
receivedEvent: function(id) {
var parentElement = document.getElementById(id);
var listeningElement = parentElement.querySelector('.listening');
var receivedElement = parentElement.querySelector('.received');
listeningElement.setAttribute('style', 'display:none;');
receivedElement.setAttribute('style', 'display:block;');
console.log('Received Event: ' + id);
},
configureBackgroundGeoLocation: function()
{
window.navigator.geolocation.getCurrentPosition(function(location)
{
console.log('Location from Phonegap');
});
var bgGeo = window.plugins.backgroundGeoLocation;
var yourAjaxCallback = function(response)
{
bgGeo.finish();
};
var failureFn = function(error)
{
console.log('BackgroundGeoLocation error');
}
bgGeo.configure(callbackFn, failureFn,
{
url: 'http://only.for.android.com/update_lo...',
params: {
auth_token: 'user_secret_auth_token',
foo: 'bar'
},
headers: {
'X-Foo': 'bar'
},
desiredAccuracy: 10,
stationaryRadius: 20,
distanceFilter: 30,
notificationTitle: 'Background tracking',
notificationText: 'ENABLED',
activityType: "AutomotiveNavigation",
debug: true
});
bgGeo.start();
}
};
this what i wrote in in index.js is there any correction please help me in clearly because i am new to cordova plugins

Thanks&regards,
lokeswarch

lokeswarreddy cherlopalli
Posts: 0
Joined: Wed Nov 12, 2014 8:26 pm

Geolocation plugin problem

Hi friends,

Any one is there please help on this,

Thanks&regards
lokeswarch

Return to “Issues”