Created
August 25, 2020 04:32
-
-
Save vreamer/292d05d5ff7be71edfa0908fe22f4a50 to your computer and use it in GitHub Desktop.
Show notification on create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| NotificationHelper.showNotification(this) // show notification on create | |
| // can be called anywhere when you need to show notification | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment