-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload failure on Marshmallow #68
Comments
Hi, any chance you could take a few screenshots? |
Thanks, that's odd. The "reset" menu is greyed out if credentials are not already stored so that makes sense, but I'm not sure why it doesn't prompt you for them. I think other people are using it successfully on Marshmallow so I'm not sure what's different here. Unfortunately that will probably be difficult to reproduce if it only happens with this specific phone model or something. Do you think you'd be able to install the dev tools and run the app through the debugger? |
Hi there, Can give the Feb tools a go, but you'll need to point me to some instructions. Is there any way to force the app to request credentials when there are none stored? Out of curiosity, when should it have asked for them? Thanks, M On 15 April 2016 10:41:39 BST, nguillaumin [email protected] wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
Hi, It's not the best time for me as I'm in the middle of an overseas relocation and it's actually been a while since I used the tools, so I won't be able to give detailed instructions but you can try to start from there: http://developer.android.com/sdk/index.html Perhaps the easiest thing to start with is to install the command line tools and use
That's the thing, it's already supposed to do that
When you press the "Save & upload" button it's supposed to check if you have a token and a secret, and if one of them is missing it's supposed to ask them again (as per the line of code above) Nico |
No prompt for osmid for me either. G. nexus 6p with Marshmallow |
SOLVED. The problem is to do with the way Marshmallow is handling default actions. When paying the upload button, OSMTracker passes an OSM URL for checking credentials. However, Marshmallow in its infinite wisdom decides it knows better and uses OSMAnd to handle the link. Not surprisingly, OSMAnd had no idea what to do with it. The solution is to clear the actions OSMAnd is used as default for, you will then be presented with the option to authenticate. Sadly it seems in Marshmallow you need to go in and clear defaults for apps, then specifically tell the OS to ask each time. Otherwise the default is to act as if an invisible "always take this action" button is ticked the first time you select a particular app to handle an event. On 15 April 2016 13:26:15 BST, nguillaumin [email protected] wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
I am able to replicate this on Lollipop, 5.1.1, with my LG Leon. From what I can tell, it is due to the fact that OSMAnd advertises that it can handle OSM URIs (it has done this for some time) and, if you tell it to always open those URIs, you'll encounter this bug. It might be that Marshmallow makes it less clear that you are making it always be the default. Would using a webview in OSMTracker help fix this issue? |
Thanks guys that's a nice finding. I think I can pinpoint it in OsmAnd in this file: https://github.com/osmandapp/Osmand/blob/d9f7ac5a50d90e4175322939ecad615dc4b0f634/OsmAnd/AndroidManifest.xml#L220 As I understand it it's for OsmAnd to open when somebody clicks on an OpenStreetMap link, to display the map in OsmAnd rather than in the browser. The problem I believe is that capturing URLs on the host only is a bit too broad as it will also capture OpenStreetMap URLs that don't point to a map, such as A good fix I believe would be to narrow down the intent filter in OsmAnd to what OsmAnd is really interested it (I assume only displaying a map). CC'ing some OsmAnd contributors to see if that would work? @vshcherb ? |
I've now learned that it's not Marshmallow per see, that was the cause. But rather that Samsung has taken out the option to choose once or always when you open a link type for the first time. So I had no idea Osmand had been set as default for these links and was therefore being selected as handler. So a big "thank you" to Samsung. If I wanted to be treated like a simpleton, I'd be on iOS :-) On 18 May 2016 23:30:23 BST, nguillaumin [email protected] wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
When I touch the button to upload a track to Openstreetmap, the app instead performs an address search and then shows the map at 0.00 lat by 0.00 long. I am using an SGS 7 Edge running Marshmallow.
The text was updated successfully, but these errors were encountered: