Directions crash when accessToken is not provided - it should use token from MGLMapboxAccessToken #396
Labels
backwards incompatible
changes that break backwards compatibility of public API
improvement
Improvement for an existing feature.
Steps to reproduce
MGLAccountManager.accessToken = "123123"
Directions()
Expected behavior
Directions should be properly initialized with a token set using
MGLAccountManager.accessToken
if not provided via parameter or info.plistActual behavior
There is a crash. Check this internal implementation of
init
:it uses
accessToken
from parameter ordefaultAccessToken
which is the one frominfo.plist
. However, it is not usingMGLAccountManager.accessToken
.The text was updated successfully, but these errors were encountered: