Skip to content

Not work Button Notification - Nothing happens when I click on the notification buttons! #710

@appikoo

Description

@appikoo
try {
               val okHttpClient = OkHttpClient.Builder().build()
               val config = FetchConfiguration.Builder(context.applicationContext)
                   .setDownloadConcurrentLimit(maxConcurrentDownloads)
                   .enableLogging(true)
                   .enableRetryOnNetworkGain(true)
                   .setAutoRetryMaxAttempts(3)
                   .enableAutoStart(false)
                   .setHttpDownloader(OkHttpDownloader(okHttpClient))
                   .setGlobalNetworkType(NetworkType.ALL)
                   .enableFileExistChecks(false)

                   .enableAutoStart(false)
                   .setNotificationManager(object : DefaultFetchNotificationManager(context) {
                       override fun getFetchInstanceForNamespace(namespace: String): Fetch {
                           return fetch
                               ?: throw IllegalStateException("Fetch instance not initialized")

                       }



                   })
                   .build()
               fetch = Fetch.getInstance(config)
               fetch?.removeAll()
           } catch (_: Exception) { }

Nothing happens when I click on the notification buttons!

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