• 1 reply
  • Latest Post - ‏2012-10-10T07:29:29Z by IdanAdar
2327 Posts

Pinned topic Push Notification WL method: WL.Client.Push.isSubscribed

‏2012-10-09T14:27:40Z |
Please confirm why WL.Client.Push.isSubscribed method returns false on Android devices even though the device is able to receive notifications.

I noticed the following differences in the respective WL files for iOS and Android platform:

this.isSubscribed = function (alias) {};

this.isSubscribed = function (alias) {
return typeof subscribedEventSourcesalias != "undefined" && subscribedEventSourcesalias && typeof registeredEventSourcesalias != "undefined" && registeredEventSourcesalias;
  • IdanAdar
    741 Posts

    Re: Push Notification WL method: WL.Client.Push.isSubscribed


    WL.Client.Push.isSubscribed returns whether the currently logged-in user is subscribed to a specified event source.
    It is not meant to identify whether or not the device is able to send/receive push notifications.

    This is mentioned in the Push Notifications training module:

    As for the difference in code,
    This is not the case here - the function in is not empty in my checking.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform