Page 2 of 6
Geolocation plugin problem
Posted: Tue Jul 08, 2014 1:04 pm
by Kevin Preston
I don't think you can actually read the posts.
I do not want help on the plugin itself only on how to install it.
gepPluginTest2 is an 'empty' app - I was hoping that you could install the plugin so that I could see how it should be done.
geoPluginTest has the plugin installed by following the tutorial and adding the steps that aren't mentioned in it. This builds without errors but
codevar bgGeo = window.plugins.BackgroundGeoLocation; /code
returns undefined. This is as stated in my original post 6 days ago!
Geolocation plugin problem
Posted: Wed Jul 09, 2014 7:07 am
by Kateryna Grynko
Hello Kevin,
Unfortunately we cannot add a plug-in to your app: http://devcenter.appery.io/support-po...
What additional steps did you add to your app?
Geolocation plugin problem
Posted: Thu Jul 10, 2014 4:30 pm
by Kevin Preston
Katya,
In an attempt to solve this problem I have been trying another app builder. This allows you to add plugins with just two lines in config.xml :-
code<gap:plugin name="org.transistorsoft.cordova.background-geolocation" version="0.2.0" />/code
code<feature name="BackgroundGeoLocation"/>/code
Phonegap Build then adds the required files automatically, this also seems like the way to do it with Eclipse. This worked immediately and is much simpler than the Appery method. Are there any plans to implement this? I am assuming that you use Phonegap Build behind the scenes.
Geolocation plugin problem
Posted: Thu Jul 10, 2014 5:07 pm
by Evgene Karachevtsev
Hello Kevin,
Thank you for sharing! Unfortunately we are not aware if there are any plans to implement this, but I can try to find out.
Geolocation plugin problem
Posted: Fri Jul 11, 2014 2:03 pm
by Kevin Preston
Evgene,
I have proved that the plugin is OK by installing it using another app builder.
So either I am still installing it incorrectly or there is something wrong with the Appery build process.
I have shared GeoPluginTest with support and would be grateful if you could look to see if the configuration is correct. If you build this app it builds without errors but when you look at window.plugins (on the device) the BackgroundGeoLocation object is not present.
The only change from the tutorial is the change to '4.1.1.4' here in pom.xml:-
code<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>4.1.1.4</version>
<scope>provided</scope>
</dependency>/code
It will not build without this change.
Geolocation plugin problem
Posted: Wed Jul 16, 2014 5:09 am
by Evgene Karachevtsev
Geolocation plugin problem
Posted: Wed Jul 16, 2014 9:38 am
by Kevin Preston
Evgene,
Thanks,I will try your latest instructions.
It is a pity that it involves Eclipse and Phonegap Build when the main attraction of Appery is that it is supposed to remove this complexity.
Kevin
Geolocation plugin problem
Posted: Thu Jul 17, 2014 11:58 am
by Kevin Preston
Evgene,
I don't think using Eclipse is really going to be an efficient solution to this. It makes it a very slow process and of course doesn't help with IOS, the removing of the complexities of Eclipse/phonegap build etc is one of the main attractions of products like Appery.
Can you explain what you mean by "it is very hard to build it in Appery.io (it is possible in principle, but you need to connect several jar files). " If it is not possible in Appery then I think I will reluctantly have to move to another app builder and lose the investment in time and money I have made already.
Geolocation plugin problem
Posted: Fri Jul 18, 2014 7:17 am
by Evgene Karachevtsev
Hello Kevin,
For IOS in Appery.io builder you cannot add plugins to it, you have to export in xCode and add plugins there. Most likely there is a possibility to add this plugin for Android, but we need more time to find out how. We'll get back to you with update.
Geolocation plugin problem
Posted: Wed Oct 29, 2014 6:21 pm
by Jerry7185911
Kevin - were you able to get this working in Appery? Is exporting necessary and is it accurate that once you modify in xCode or Eclipse, you can't go back to Appery?
Evgene - are there any plans to improve the background geolocation support for Appery?
thank you for any update you can provide.