Page 10 of 21

Journey Recording using GPS Tracking

Posted: Thu Jun 13, 2013 4:49 pm
by Joe Paisley

Also, what's the easiest way to duplicate several of the labels on the "plot" page so that they may be displayed when tweeting or sharing the "plot" page on Facebook? That way, the user can also share that data, and not just the "average speed" over time chart.


Journey Recording using GPS Tracking

Posted: Thu Jun 13, 2013 7:17 pm
by Maryna Brodina

Hi Joe, we'll take a look as usual and get back to you with update. No lack with "prompting the user to enable GPS location tracking" unfortunately.


Journey Recording using GPS Tracking

Posted: Mon Jun 17, 2013 3:46 pm
by Kateryna Grynko

Hi Joe,

For Facebook try using Direct URL instead of JavaScript:
https://developers.facebook.com/docs/...
For example, on button click run the following code:
codefunction myNavigate(url) {
var cb;
if(window.plugins) {
cb = window.plugins.childBrowser;
}
if (cb != null) {
cb.showWebPage(url);
}
else {
window.open(url);
};
}
myNavigate("https://www.facebook.com/dialog/feed?app_id=458358780877780&link=https://developers.facebook.com/docs/reference/dialogs/&picture=http://fbrell.com/f8.jpg&name=Facebook%20Dialogs&caption=Reference%20Documentation&description=Using%20Dialogs%20to%20interact%20with%20users.&redirect_uri=https://mighty-lowlands-6381.herokuapp.com/");/code

Don't forget to change all the parameters as you need.


Journey Recording using GPS Tracking

Posted: Tue Jun 18, 2013 6:41 pm
by Joe Paisley

I got an error when pressing the button on the plot page. What do I need to use for the link address? And what do I need to use for the redirect uri?

The error shows the following:

An error occurred. Please try again later. API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application.

Thanks!


Journey Recording using GPS Tracking

Posted: Tue Jun 18, 2013 9:09 pm
by Alena Prykhodko

Joe, we'll test it and let you know, but it may need some time.


Journey Recording using GPS Tracking

Posted: Wed Jun 19, 2013 10:20 am
by Maryna Brodina

Hello! You would need to search information on this error and how to fix it online.


Journey Recording using GPS Tracking

Posted: Wed Jun 19, 2013 12:01 pm
by Joe Paisley

The "click" action on the "share on facebook" button runs the following javascript:

codefunction myNavigate(url) {
var cb;
if(window.plugins) {
cb = window.plugins.childBrowser;
}
if (cb != null) {
cb.showWebPage(url);
}
else {
window.open(url);
};
}
myNavigate("https://www.facebook.com/dialog/feed?app_id=595575900470215&link=https://www.thepedalcollective.com/&picture=http://api.ning.com/files/rRUWEC*XQHyJ7cZiPRMjfeafBCS7z2xlOMSz34mPnQsVcivPG66W8NkhSwjKZmkmKCNuDyBGXOiFmgRnplWJ2IRQMm7SRCOs/Homebutton.png&name=Pedal%20Dialogs%20Cycling%20Utility&caption=Pedal%20Collective%20Mobile&description=Use%20The%20Pedal%20Collective%20Mobile%20for%20connecting%20with%20cyclists,%20mapping%20rides%20tracking%20rides,%20sharing%20music,%20checking%20weather,%20and%20taking%20pictures.&redirect_uri=https://developers.facebook.com/apps/595575900470215");/code

I'm pretty sure I'll have to change my redirect uri and link url to something else to make this work.


Journey Recording using GPS Tracking

Posted: Wed Jun 19, 2013 2:09 pm
by Maryna Brodina

Please take a look here https://developers.facebook.com/docs/...

link should be link=https://developers.facebook.com/docs/...

redirect url is the URL to redirect to after a person clicks a button on the dialog. Required, but automatically specified by most SDKs.

Also check your developer account settings (ensure you've set correct redirect URL)


Journey Recording using GPS Tracking

Posted: Tue Jun 25, 2013 2:42 am
by Joe Paisley

Do I want

http://appery.io/app/view/7990d748-47...

for my redirect uri value?

and my link value should be

https://developers.facebook.com/docs/...

?

I'm not understanding what value needs to be put here. If I need to use information from my facebook app, what information should I use?

Image

And how can I copy my labels from the "recordride" page to the "plot" page?

Any luck with prompting the user to enable GPS tracking?

How would I get altitude data to populate in the "altitude" label on the "recordride" page?

Thanks!


Journey Recording using GPS Tracking

Posted: Tue Jun 25, 2013 7:53 pm
by Maryna Brodina

Hello!

"I'm not understanding what value needs to be put here. If I need to use information from my facebook app, what information should I use? " - please contact Facebook support to figure out what settings should be to have ability posting on Facebook.

"And how can I copy my labels from the "recordride" page to the "plot" page?
" - before navigating to plot page you need to save data to localStorage page Show event (for plot page) put data from localStorage to corresponding labels.

"Any luck with prompting the user to enable GPS tracking" - there is no way to know if GPS switched on or off. If it's switched off you'll get data through network (wi-fi, gprs etc.)

"How would I get altitude data" - Geolocation service returns altitude as well as latitude and longitude - you can use it as you wish.