question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing the notification info not working

See original GitHub issue

I am writing this:

cordova.plugins.backgroundMode.setDefaults({
      title: "helo",
      text: "Text",
      icon: 'icon',
      color: "F14F4D",
      resume: true
    })

But when minize the app, I see the default OS notification info and when click on it it moves to app settings instead of just open it.

Android any device. Plugin version: 0.7.3

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:14

github_iconTop GitHub Comments

13reactions
ragcsalocommented, May 13, 2020

FOUND the solution: you have to define the icon name, which you first should create (add new image asset in Android Studio). When I don’t define the icon, the notification will be generated with the default data…

3reactions
rodrigoticommented, Jun 29, 2020

Hi @kevdaci, You have to look into the folder: \platforms\android\app\src\main\res In there you’ll see folders like “mipmap-ldpi” Inside of those you’ll see files named “ic_launcher.png”

You can use any icon, even those that are already there …

Read more comments on GitHub >

github_iconTop Results From Across the Web

16 Ways to Fix Text Message Notifications Not Working on ...
To check, open System Settings > Apps and Notifications > Notifications and check if it is turned on.
Read more >
Android Notifications Not Showing Up? 10 Fixes You Can Try
Android Notifications Not Showing Up? 10 Fixes You Can Try · 1. Reboot Your Phone · 2. Review the App's Notification Settings ·...
Read more >
Change your Google notifications - Android
On your Android phone or tablet, open the Google app Google Search . · At the top right, tap your Profile picture or...
Read more >
How to fix Android notifications not working - Carlcare Service
How to fix Android notifications not working ; Open your Apps drawer; Locate the affected app. Long press on the app's icon, then...
Read more >
Change message notifications on iPhone - Apple Support
To allow alerts for messages sent by this contact even when Do Not Disturb is on, turn on Emergency Bypass. Mute notifications for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found