I am trying to build an android app using Cordova. Is there any plugin to show an image notification in the status bar.
Not icons but full image like this
http://imgur.com/XDj7fXI
If your app also needs to record GPS data in the background, then try this plugin:
https://www.npmjs.com/package/cordova-plugin-mauron85-background-geolocation
You have the option to add an image/icon and various other notification settings for when the app is in the background:
option.notificationTitle
option.notificationText
option.notificationIcon
option.notificationIconColor
If you don't want or need background GPS, then I haven't seen a plugin that has that functionality so far.
I hope this helps.
Related
How do I have changing Icons similar to how Instagram notifications icons changes by who sends the message.
The way I understand it is notifications can only access image in drawable and mipmap that once the apk is built they can only access that image. What I want to do is allow user to give any image and make it the notifications Icon
Please check _showBigPictureNotificationURL() method from the plugin:
flutter_local_notifications
We try to create an app and would like to show some information for app on notification bar. I don't know how this is called on android, but some other apps have some widgets in the bar like this
I don't know how this is done and how this is called. We can not close the notification and it is still present there.
At the end we try to do this with a cordova app, but if we know how this is done native by android we can google for it and check if there is always a cordova plugin or if we have to implement this by our own.
I am writing Android cordova application.I want to display notification count in app icon same as below image. I am using local Notification plugin for notification but how can I display badge number in app icon. I tried badge plugin of cordova. https://github.com/katzer/cordova-plugin-badge but it's not working in android.
Thanks in Advance.
This may help you to set badge
cordova.plugins.notification.badge.set(1);
also check $cordovaBadge
module.controller('MyCtrl', function($cordovaBadge) {
$cordovaBadge.set(3).then(function() {
// You have permission, badge set.
}, function(err) {
// You do not have permission.
});
});
For more see this
Stock Android does not offer this functionality at the moment on the standard launcher.
Certain manufacturers (e.g. Samsung notably) have included this functionality into their customised Android launchers. Also some 3rd-party launchers (e.g. Nova Launcher) have included an API to accomplish this.
You may want to check following links for further explaination:
How does Facebook add badge numbers on app icon in Android?
Does Samsung modifies it's Android ROMs to have badges on email and SMS icons?
How to make application badge on android?
Regards
I am building an Android SDK which sometimes need to display notifications to the user in the notification drawer:
Naturally, I would like to use the app icon when setting the setSmallIcon() property of the NotificationCompat.Builder. The problem is that an SDK does not know in advance what is the icon of its embracing app.
Is there a way to get a reference to the app icon asset programatically, in run time?
I am developing an android music app in ionic framework like gaana.com or saavn.
If any song is playing then one notification should appear (shown in image) with image, buttons or song details. So my problem is, I don't have any idea how to bring it.
Shall I need to use Cordova local Notification plugin? If I use this then how could I add buttons and button events? And one large image? I followed their docs but I didn't get anything to add buttons. (Or am I missing something?)
If cordova local notification is not the solution the what should I use?
I want to add this feature like: user can't close the notification. If song get stopped then only notification gets automatically closed. is that possible ?
May be the question is very very silly.. But I stucked.