Skip to content

theme_changed, miniApp.isDark doesn't work on Android and IOS #3

@artyom12211

Description

@artyom12211

Device on IOS 18 doesn't detect this event.
Android throws error when I am manually changing theme on Telegram "Uncaught TypeError: Cannot read properties of undefined (reading 'WebView')
at :1:17. "
image

PS maybe I something don't understand :(

Stetps to reproduce
App.vue

import {  
miniApp  
} from '@telegram-apps/sdk-vue';  

const isDark = useSignal(miniApp.isDark)  
// OR   
on("theme_changed", (payload) => {  
 console.log('payload: ', payload)  
});  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions