Meizu notification badge issue - android

I'm trying to set a Push Notification badge on the app icon.
I have an issue with Meizu phone, It doesn't display the badges.
Does anyone has a solution for it?
I searched the stuck, but didn't find a solution for it.
I tried #Tadas Valaitis solotion from here:
https://stackoverflow.com/a/25849212/5223744
I also tried using ShortcutBadger library, but no luck.

For your kind information, it is facility provided by manufacturer,
Please read article provided by WhatsApp

Related

How set badge number in home screen app icon android programatically?

I would like create app with custom badge number in app icon, like in facebook app: App icon in home screen shows pending/unread notifications. How to set custom badge number programatically in android. I've seen similar questions in stack with answers like it "doesn't support in stock android". Seen many answers and were old. I think they were for old versions. Is it possible in newer versions of android? If possible how to add customized badge number ? If the option is still doesn't support by android ignore this question and please let me know it. I'm developing kind of confidential app, so that i couldn't use third part libs. Is there any inbuilt methods to handle badges or possible to create badge?
There is popular github that works app icon badges for most Android devices. Sure still some platform, some devices didn't support that. But those libraries almost cover all of the devices that support app icon badges.
https://github.com/leolin310148/ShortcutBadger
So to your question, No.
Because Android framework didn't define the app notification badges before.(I am not sure if Android default framework have it now. I've been search the keyword of BADGE_COUNT_UPDATE in the ASOP android7 and nothing found) So all those custom badges are made by device manufacturer framework developer.
You can check how they setup badges numbers for each manufacturer here
https://github.com/leolin310148/ShortcutBadger/tree/master/ShortcutBadger/src/main/java/me/leolin/shortcutbadger/impl
To another question. I use keyword badge to search the ASOP source code and didn't find any noticeable part about app icon badges. And even there is one inbuilt framework method about this after certain version of android. The framework still cannot cover all the devices before the certain version. So not quite sure what do you mean by confidential app, but using libraries is the first choice to cover most android devices based on the real situation like this.

Firebase background notification icon problems

I'm working at an app that is completely based on Firebase tools hence I adopt FCM to send push notifications. Talking about notifications my app receives when it's in foreground, they perfectly work and I manage to handle it as I want through FirebaseMessagigService and onMessageReceived method in particular.
Unfortunately this method seems to be completely transparent when the app is in background...I've attempted many different ways, and tried to follow as many as possible official tutorials and stack overflow suggestions, but there's a lot of contradictory information and I definitely don't succeed in changing the notification icon as I'd like to do. I have to accept the white and grey circle the system proposes to me but this is certainly not a good presentation for an app. :-(
Is there someone who has the key to solve this problem and/or has understood which the final word from Firebase team could be?
Thank you very much.
Yep! You can set which icon to use in your manifest file.
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="#drawable/ic_stat_ic_notification" />

Trigger.io Notifications: forge.notification.showLoading() not working on Android

According to the documentation, forge.notification.showLoading() should work on both Android and iOS. I'm using:
forge.notification.showLoading('Getting GPS location.');
right before a forge.geolocation.getCurrentPosition(), how ever it doesn't display anything on Android. On iOS I get the expected result. Am I missing something?
I'm testing on two different 4.4.2 (physical) devices, no notification. The code seems to be working, after a bit I do get the Position, and the code continues (closing the loading spinner on iOS) doing some more stuff. For iOS I'm using the Simulator.
Thanks in advance.
So, the problem was that I wasn't using the right params:
forge.notification.showLoading('title', 'body');
iOS only needs the title, but Android does show both title and body. Hope it helps somebody.

How to implement the gmail notification?

I have a scenario wherein in need to implement a similar effect like the one in gmail app notification.
while closing the notification if you see in the screenshot the archive and reply view are overlapped by the email textview.
Please suggest any ideas
Thanks
It is possible to update notifications once you've created them. See here for more information.
Just set a big view style to your notification and the dragging mechanism will be added for you. Note this will only work starting from Jelly Bean 4.1.
This guide will be of some help: http://developer.android.com/guide/topics/ui/notifiers/notifications.html

wikitude does not show icon

I have a problem with Wikitude on Android, the icons related at the POI are not shown, I have the market but without the icon. I set the icon in this way:
poi1.setIconresource("com.mitcom.wigo:drawable/icon_48x48");
where icon_48x48 is the resource.
The strange thing is that I was able to show the icon in dev mode, when I put the app on the market I faced this problem.
Thanks
have you tried it with setIconResorce(getResources().getResourceName(R.drawable.icon_48x48));
I think it will solve your problem.

Categories

Resources