Skip to content

Unable to restart service in android 14 #56

@Matsuo32

Description

@Matsuo32

Hello,
it not work when stopping service and starting service again in android 14,
** it work only if set toggle service in "NotificationsHandlerService" and call "openPermissionSetting" every time for start button

        fun openPermissionSettings(context: Context): Boolean {
            // toggle service
            disableServiceSettings(context)
            enableServiceSettings(context)

            context.startActivity(Intent(ACTION_NOTIFICATION_LISTENER_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
            return true
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions