MapLocationFinder.FindLocationsAsync failing first pass with Invalid Credentials RRS feed

  • Question

  • I've implemented Maps and set my service token.  Calling MapLocationFinder.FindLocationsAsync  will generate InvalidCredentials.  If I hit the method again, it works.  Anyone know what is going on?
    Thursday, June 11, 2020 2:34 PM

All replies

  • Hi Boxster,

    Without seeing the order of operations in your code, there is the potential that your code fills the credential after the first load.  Did you start with some sample code?  Without sharing your key, can you provide details of how your code is constructed?

    If you step through our code using the debugger, can you confirm the creds are supplied at that first call?



    Thursday, June 11, 2020 3:34 PM
  • Thank you for the response.  I figured this out, I generated a token for mobile device.  Apparently, for Universal Windows you must generate a token for use with windows apps.  It would be nice if they simply told you on the token generation screen.
    Thursday, June 11, 2020 6:16 PM
  • Hi Boxster1,

    Do you have a suggestion on how this could be made clearer for future folks?



    Thursday, June 11, 2020 9:04 PM