Skip to content

App Restarts When Tapping LiveChat Notifications #23

Open
@dhiyaaulauliyaa

Description

@dhiyaaulauliyaa

Description

When users tap on LiveChat notifications, the app immediately restarts. This behavior is specific to LiveChat notifications only - all other push notifications work as expected without triggering an app restart.

Environment

  • Package Version: infobip_mobilemessaging: 7.2.1
  • Flutter Version: 3.24.4
  • Device/OS tested on: iOS & Android

Current Implementation

InfobipMobilemessaging.on(
    LibraryEvent.notificationTapped,
    (infobip_message.Message event) async {
        // handle livechat notification
        if (event.chat ?? false) {
          // Handle to open livechat page here
         ...
         ...
         ...
          return;
        }
    },
);

Steps to Reproduce

  1. Set up LiveChat integration
  2. Send a message as an agent to trigger a notification
  3. While app is in foreground/background, tap on the received notification
  4. Observe app restart instead of normal resume

Expected Behavior

App should resume normal operation when tapping the notification, without restarting.

Additional Context

  • This issue only occurs with LiveChat notifications
  • Regular push notifications work correctly without causing app restart

Questions

  • Is this a known issue/expected behavior?
  • What is the recommended implementation to prevent the app restart?
  • Are there any relevant documentation or code samples available?

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