android - IBM Worklight: Push Notification and Badge -
on testing worklight push notification android, if alert (notification message) empty, app icon app name displayed in notifications bar without notification message.
may know how worklight handle case if alert empty in ios? notification alert prompted? reason ask update badge number without launching alert box if there update server though app closed.may know whether badge in push notification applicable on ios not android? document here said that:
"gcm alert optional. string displayed in alert. badge mandatory. integer value displayed in badge on application icon." on testing, there no badge appeared android app.notice there api set number of badge (wl.badge.setnumber) or can set in push notification api (wl.server.notifyxxx - notificationoptions).
can number of badge increment instead of setting number it?
environment: worklight 5.0.6, samsung galaxy s3 android 4.1.1
thanks!
- without sending text notification, ios not display alert (banner or modal dialog, depending on user chooses app in notifications section in settings.app). make sound, if choose so.
- badge support ios only. i'll have "badge" mention removed information center article. thanks.
- there no api current number of badges. in meanwhile, perhaps can use cordova plug-in current value of app icon badge.
Comments
Post a Comment