Page 4 of 6

Geolocation plugin problem

Posted: Wed Nov 12, 2014 8:26 pm
by lokeswarreddy cherlopalli

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


Geolocation plugin problem

Posted: Thu Nov 13, 2014 9:58 am
by Maryna Brodina

Hello @lokeswarreddy cherlopalli!

Could you clarify your question please?


Geolocation plugin problem

Posted: Thu Nov 13, 2014 3:43 pm
by lokeswarreddy cherlopalli

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


Geolocation plugin problem

Posted: Thu Nov 13, 2014 3:50 pm
by Evgene Karachevtsev

Hello Lokeswarch,

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


Geolocation plugin problem

Posted: Thu Nov 13, 2014 4:56 pm
by lokeswarreddy cherlopalli

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


Geolocation plugin problem

Posted: Thu Nov 13, 2014 6:30 pm
by Evgene Karachevtsev

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.


Geolocation plugin problem

Posted: Fri Nov 14, 2014 10:59 am
by lokeswarreddy cherlopalli

Evgene,

I am using samsung galaxy,os is android

Thanks&regards,
Lokeswar


Geolocation plugin problem

Posted: Fri Nov 14, 2014 1:06 pm
by Maryna Brodina

Hello!

And where did you add this code?


Geolocation plugin problem

Posted: Sat Nov 15, 2014 10:40 am
by lokeswarreddy cherlopalli

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


Geolocation plugin problem

Posted: Sat Nov 15, 2014 6:30 pm
by lokeswarreddy cherlopalli

Hi friends,

Any one is there please help on this,

Thanks&regards
lokeswarch