Open OlegNovosad opened 5 days ago
@OlegNovosad there have been many changes with the new API. Thanks for the contribution)
@OlegNovosad It will be super nice!
@khamidjon-khamidov just a follow-up after latest PR:
I plan to work on all full screen and location manager in recent PR. I will also add corresponding events (as well as those I've missed in MR)
added orientation support https://github.com/khamidjon-khamidov/flutter_telegram_web_app/pull/46
@OlegNovosad I will work on all home screen features soon
@khamidjon-khamidov PR #47 for location management and full screen has been opened
Released v0.2.1 with currently implemented apis by far
I plan to add accelerometer & gyroscope over the weekend unless you do :) after that with all bot 8.0 I believe it should become 0.3.0 at least
@OlegNovosad please consider this bugfix. I found out some events are wrapped around JS object even if there is a single field https://github.com/khamidjon-khamidov/flutter_telegram_web_app/pull/49/files
Telegram just release API 8.0 with more improvements to the mini apps.
I am working on it π«‘πΊπ¦
Things to deliver: (will be updated based on merges)
isActive
requestFullscreen()
exitFullscreen()
lockOrientation()
unlockOrientation()
addToHomeScreen()
checkHomeScreenStatus([callback])
isFullscreen
isOrientationLocked
safeAreaInset
contentSafeAreaInset
shareMessage(msg_id[, callback])
setEmojiStatus(custom_emoji_id[, params, callback])
requestEmojiStatusAccess([callback])
downloadFile(params[, callback])
New classes:
Accelerometer
DeviceOrientation
Gyroscope
LocationManager
Events:
activated
eventdeactivated
eventsafeAreaChanged
eventcontentSafeAreaChanged
eventfullscreenChanged
eventfullscreenFailed
eventhomeScreenAdded
eventhomeScreenChecked
eventaccelerometerStarted
eventaccelerometerStopped
eventaccelerometerChanged
eventaccelerometerFailed
eventdeviceOrientationStarted
eventdeviceOrientationStopped
eventdeviceOrientationChanged
eventdeviceOrientationFailed
eventgyroscopeStarted
eventgyroscopeStopped
eventgyroscopeChanged
eventgyroscopeFailed
eventlocationManagerUpdated
eventlocationRequested
eventshareMessageSent
eventshareMessageFailed
eventemojiStatusSet
eventemojiStatusFailed
eventemojiStatusAccessRequested
eventfileDownloadRequested
event