Push Notification - No Sound, Vibration

5 posts, 0 answers
  1. Bruce Parr
    Bruce Parr avatar
    38 posts
    Member since:
    Oct 2009

    Posted 21 Sep 2013 Link to this post


    I am getting notifications, but they never trigger a sound or vibration on my device. This is happening in my app as well as the Icenium Everlive Push sample app, which I have not edited. I have verified that my phone is set properly for sound/vibration etc.

    iOS 6.1.3
    iPhone 4S


    PhoneGap Version(s)
    2.7 in both my app and the sample app

    My Icenium Code
    var pushSettings = {
            'badge': 'true',
            'sound': 'true',
            'alert': 'true'
            'senderID': '1096136230769'
        notificationCallbackIOS : onIosPushReceived,
        notificationCallbackAndroid : onAndroidPushReceived

    My API Server Code
    EverliveApp elApp = new EverliveApp(this.APIToken);
    var notification = new PushNotification();
    //notification.Message = message;
    if (devicePlatform.ToUpper() == "IOS")
        notification.iOS = new Telerik.Everlive.Sdk.Core.Model.System.Push.IOS.IOSNotification();
        notification.iOS.CustomProperties.Add("aps.alert", message);
    else if (devicePlatform.ToUpper() == "ANDROID")
        notification.Message = message;
    notification.Filter = Filter;

  2. Pavel Iliev
    Pavel Iliev avatar
    3 posts

    Posted 26 Sep 2013 Link to this post


    Can you try with this settings:
        "alert": "message",
        "badge": 1,
        "sound": "default"        


    Pavel Iliev

    Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
    Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Ahsan
    Ahsan avatar
    2 posts
    Member since:
    Jul 2014

    Posted 18 Mar 2015 Link to this post

    Hi Pavel,

    I'm facing same problem (sound & badge), change accordingly your comment but same issue occurring again.

    in the mean while i have to change template 
    var template = "{\"aps\":{\"alert\":\"$(message)\",\"sound\":\"default\"}}"; or var template = "{\"aps\":{\"alert\":\"$(message)\",\"sound\":\"default\",\"badge\":1}}";
    instead of this
    var template = "{\"aps\":{\"alert\":\"$(message)\"}}";

    sound working but badge still on grey shade.

    iOS 7 or 8 
    com.phonegap.plugins.PushPlugin 2.4.3
    Cordova V 3.5.0

    Please Guide how to resolve this.

  4. Ahsan
    Ahsan avatar
    2 posts
    Member since:
    Jul 2014

    Posted 18 Mar 2015 Link to this post

     onNotificationAPN: function (event) {
           if (event.alert){

    if (event.sound){
    var snd = new Media(event.sound);

    if (event.badge){
        pushNotification.setApplicationIconBadgeNumEber(successHandler, errorHandler, event.badge);

    alert return these values "alert" & foreground but "badge"  missing 
    Msg: {"alert":"new item added: test 123","sound":"default",foreground:"0"}
  5. Anton Dobrev
    Anton Dobrev avatar
    531 posts

    Posted 20 Mar 2015 Link to this post

    Hi Ahsan,

    When a notification is received on iOS and the app is not running, the notification event is handled on a system level (if the badge is allowed in the Notification center for the app). The system sets the badge value according to the "badge" value in the notification payload.

    Make sure that you are registering the device with option "badge": true and that you are sending a payload that contains the value of the badge as integer.

    Also, please verify in the Notification Center of the device app that the badges are allowed for this app.

    Anton Dobrev

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top