tencent cloud

Feedback

Customizing Mini Program Information API

Last updated: 2024-08-06 15:36:18

    Monitoring mini program lifecycle

    The Flutter app host can receive notifications by overriding the onMiniProgramStateChange method when the mini program starts, enters the foreground, background, or closes.
    Sample code:
    @override
    Future<void> onMiniProgramStateChange(
    String appId, MiniProgramState state) async {
    print("app state change: appid=$appId, state=$state");
    }
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support