Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification action buttons not working. #1

Open
DaChelimo opened this issue Nov 24, 2020 · 0 comments
Open

Notification action buttons not working. #1

DaChelimo opened this issue Nov 24, 2020 · 0 comments

Comments

@DaChelimo
Copy link

This is not a bug in the code but a reminder to everyone who watched the video but is facing a problem. I thought it would be wise if I shared the challenge I faced in the issues tab.

Solution: Check that the service and broadcast receiver are included in the manifest like so:

        <receiver android:name=".services.NotificationActionService"/>
        <service android:name=".services.OnClearFromRecentService"/>

Full manifest code:

 <application
        android:allowBackup="true"
        android:icon="@drawable/smart_recorder"
        android:label="@string/app_name"
        android:roundIcon="@drawable/smart_recorder"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <receiver android:name=".services.NotificationActionService"/>
        <service android:name=".services.OnClearFromRecentService"/>
        <meta-data
            android:name="preloaded_fonts"
            android:resource="@array/preloaded_fonts" />
    </application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant