与PhoneGap的构建和PushPlugin为Android白通知图标 [英] White notification icon for Android with Phonegap Build and PushPlugin
问题描述
我与PhoneGap的插科打诨使用Adobe的Build服务,我想知道,(如果有的话,怎么样)我可以让我的通知显示一个白色的图标(如谷歌描述的here )。我使用的是 PushPlugin 但我无法找到关于此的任何文件。此刻我的应用程序只显示旁边的通知内容的启动器图标。
I'm messing around with Phonegap using Adobe's Build service and I was wondering if (and if so, how) I could make my notifications display a white icon (as Google describes here). I'm using the PushPlugin but I couldn't find any documentation on this. At the moment my app just displays the launcher icon next to the notification content.
因此,没有人知道是否有某种方式来实现与PushPlugin备用通知图标,我是坚持与启动器图标或者是有其他的插件使用此功能?
So does anyone know if there's some way to enable an alternate notification icon with the PushPlugin, am I stuck with the launcher icon or is there another plugin with this feature?
谢谢!
推荐答案
如果您使用的是生成的一> PushPlugin ;局部修改 .setSmallIcon()
<一个href="https://github.com/phonegap-build/PushPlugin/blob/93067b9303252d5ed7394819bf220db56d99d22c/src/android/com/plugin/gcm/GCMIntentService.java#L100"相对=nofollow>#100 将会丢失。
If you're using Build's PushPlugin; local modifications to .setSmallIcon()
#100 will be lost.
除非你在当地建造或使用其它的GCM插件,你仅限于修改
Unless you build locally or use an alternative GCM plugin, you're restricted to modifying:
title extras.getString("title")
message extras.getString("message")
msgcnt extras.getString("msgcnt")
这篇关于与PhoneGap的构建和PushPlugin为Android白通知图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!