IBM Worklight: Push Notification and Badge



On testing Worklight push notification for Android, if the alert (notification message) is empty, the app icon with app name will be displayed in notifications bar without any notification message. May I know how Worklight will handle this case if alert is empty in iOS? Will the notification alert be prompted? The reason to ask so is that I would like to update the badge number only without launching an alert box if there is update from server even though the app is closed.

</li> <li>

May I know whether badge in Push Notification is applicable on iOS only but not Android? As the document <a href="http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fapiref%2Fr_method_wl_server_notifyalldevi.html" rel="nofollow">here</a> said that: <br /> "GCM alert Optional. A string to be displayed in the alert. <b>badge Mandatory. An integer value to be displayed in a badge on the application icon.</b>" But on my testing, there is no badge appeared for Android app.

</li> <li>

Notice that there is an API to set the number of badge (WL.Badge.setNumber) or I can set it in Push Notification API (WL.Server.Notifyxxx - notificationOptions). <br /> Can I get the number of badge currently to do increment instead of just setting a number to it?

</li> </ol>

Environment: Worklight 5.0.6, Samsung Galaxy S3 Android 4.1.1



<ol><li>Without sending text with your notification, iOS will not display an alert (banner or modal dialog, depending on what the user chooses for the app in the Notifications section in Settings.app). It will only make a sound, if you choose so.</li> <li>Badge support is for iOS only. I'll have the "badge" mention removed from that Information Center article. Thanks.</li> <li>There is currently no API to get the current number of badges. In the meanwhile, perhaps you can <a href="https://github.com/mgcrea/cordova-push-notification/pull/2" rel="nofollow">use a Cordova plug-in</a> to get the current value of the app icon badge.</li> </ol>


  • Parse Push Notification Include Users TimeZone in Push-Time
  • Cannot declare variable at all with Windows Driver Kit build environment
  • Visual Studio 2012 doesn't build project on run when its dependencies change
  • java returns empty String value for oracle VARCHAR2
  • NSWorkspace launchApplication: fails for the first time with root user
  • spark udf with data frame
  • Trouble downloading file from browser on Android
  • Reload UITableView from another tab
  • How to update powerpivot pivot table filter via cell reference?
  • VBScript to check for open process by user
  • Can you build a truly RESTful service that takes many parameters?
  • jQuery Mobile - Dialogs without changing hash
  • CSS: How to fix overlapping divs
  • Unable to run SDL program in Eclipse but able to do so in Windows Explorer
  • How gzip file gets stored in HDFS
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • Angular - routerLinkActive and queryParams handling
  • Angular Bootstrap Carousel Slide Transition not working correctly
  • PushKit for VOIP iOS apps
  • C# fibonacci function returning errors
  • Why cepheus don't send int without quotes to orion?
  • Silverlight DependencyProperty.SetCurrentValue Equivalent
  • Specifying Castle WCF Integration Facility Endpoint Behavior per Endpoint
  • Ajax calls do not work in IE unless you fiddle with security settings
  • Keep this build forever option - Jenkins
  • How do I get HTML corresponding to current DOM tree?
  • JQuery Internet Explorer and ajaxstop
  • JSON response opens as a file, but I can't access it with JavaScript
  • Is there a javascript serializer for JSON.Net?
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Where to put my custom functions in Wordpress?
  • Change an a tag attribute in JavaScript based on screen width
  • How to show dropdown in excel using jrxml (jasper api)?
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Buffer size for converting unsigned long to string
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Binding checkboxes to object values in AngularJs
  • How to push additional view controllers onto NavigationController but keep the TabBar?