Flutter Setup
The first thing you need to do is to set your apiToken
:
Then you need to configure MPush with the callbacks that will be called when a notifcation arrives or is tapped and the android notification settings.
To configure the Android part you need to pass a MPAndroidNotificationsSettings
to the configure sections, it has 2 parameters:
channelId
: the id of the channelchannelName
: the name for the channelchannelDescription
: the description for the channelicon
: the default icon for the notification, in the example application the icon is in the res folder as a mipmap, so it's adressed as@mipmap/icon_notif
, iff the icon is a drawable use@drawable/icon_notif
.
Last updated