notify_me

The Notify Me SDK is an Flutter plugin designed to simplify integration with our hosted notification system. With this SDK, developers can easily send and manage push notifications from their Android applications.

How To Use It

To start using the notify_me plugin, you need to add this to you android/AndroidManifest.xml File, under application tag :

All This values can be obtained from your dashboard.

        <meta-data
            android:name="com.custom_pusher.PROJECT_ID_VALUE"
            android:value="YOUR_PROJET_ID" />

This represent your project id

        <meta-data
            android:name="com.custom_pusher.KEY_VALUE"
            android:value="YOUR_KEY_VALUE" />

This represent your account api key

        <meta-data
            android:name="com.custom_pusher.CLUSTER_VALUE"
            android:value="YOUR_CLUSTER_VALUE" />

This represent your websocket cluster

        <meta-data
            android:name="com.custom_pusher.HOST_VALUE"
            android:value="192.168.1.8" />

This represent OUR host must be as same the value

        <meta-data
            android:name="com.custom_pusher.PORT_VALUE"
            android:value="6001" />

This represent OUR port must be as same the value

        <meta-data
            android:name="com.custom_pusher.USE_TLS_VALUE"
            android:value="false" />

This represent OUR TLS must be as same the value

And you need to add this four permissions

    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />

And you are responsible of handling the request of notification permission request in runtime

After that one last thing to run this service you need to call it

you can do this an main widget like this

Example :

    final _notifyMePlugin = NotifyMe();
    @override
    void initState() {
        super.initState();
        // Just call this method in your main widget
        _notifyMePlugin.startService();
    }

And that is it. Now a service will be running in background/forground hundling incoming notifications.