Skip to content

Instantly share code, notes, and snippets.

@vreamer
Last active August 25, 2020 04:30
Show Gist options
  • Select an option

  • Save vreamer/40b5be341d9b0e53dd478bb4da091373 to your computer and use it in GitHub Desktop.

Select an option

Save vreamer/40b5be341d9b0e53dd478bb4da091373 to your computer and use it in GitHub Desktop.
Create channel on create
package com.example.direct_reply_notification
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
NotificationHelper.createChannel(this) // call create channel from onCreate
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment