We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hence the title, we've had LocationManager initialization issue in our TMA.
LocationManager.init() call returns the below result
LocationManager.init()
{ "isInited": false, "isLocationAvailable": false, "isAccessRequested": false, "isAccessGranted": false }
and the LocationManger.init with callback returns undefined callback value.
LocationManger.init
LocationManager.init((isInitialized) => { // typeof isInitialized is undefined here })
However I've noticed that the second call to LocationManager.init results with success so I've used the workaround below
if (!WebApp.LocationManager.isInited) { if (WebApp.LocationManager.init().isInited) { manageLocation() } else { setTimeout(() => { manageLocation() }, 50) } }
The text was updated successfully, but these errors were encountered:
Please specify type and version of Telegram client.
Sorry, something went wrong.
No branches or pull requests
Hence the title, we've had LocationManager initialization issue in our TMA.
LocationManager.init()
call returns the below resultand the
LocationManger.init
with callback returns undefined callback value.However I've noticed that the second call to LocationManager.init results with success so I've used the workaround below
The text was updated successfully, but these errors were encountered: