Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only "Badges" instead of "Badges, Sounds, Banners" in Notifications settings #147

Open
oskareke opened this issue Nov 4, 2015 · 9 comments

Comments

@oskareke
Copy link
Contributor

oskareke commented Nov 4, 2015

In the Notifications section in the Settings app, my app only has "Badges" under it where it should have "Badges, Sounds, Banners".

Due to this I don't get "notified" when a new notification comes in, i.e. no banner, no sound, no vibrations. The notification shows up in the notifications tray and on lock screen and the badge number updates, but there are no alerts.

Any ideas how to fix this?

My config.push.json looks like this:
{
"apn": {
"passphrase": "passphrase",
"key": "PushChatKey.pem",
"cert": "PushChatCert.pem"
},
"production":false,
"badge": true,
"sound": true,
"alert": true,
"vibrate": true
}

And I send the notification like this:

Push.send({
from: 'Test',
title: 'Hello',
text: 'World',
badge: 4,
query: {},
sound: 'default'
});

@nddeveloper
Copy link

Same issue here

@AzadMemon
Copy link

I had the same issue, and I fixed it by explicitly setting the following in config.push.json:

"badge": true,
"sound": true,
"alert": true,
"vibrate": true

@lpender
Copy link

lpender commented Jan 27, 2016

I have the same issue, but that doesn't work for me :(

@lpender
Copy link

lpender commented Jan 27, 2016

Any other ideas?

@nddeveloper
Copy link

I thought this issue occurs in latest repo. I have downgrade raix:push to 2.6.12-rc1 and it works for me.

Push.send({
from: 'Test',
title: 'Hello',
text: 'World',
badge: 4,
query: {},
sound: 'default'
});

@lpender
Copy link

lpender commented Jan 29, 2016

Downgrading to 2.6.12-rc1 worked for me as well, but still not hearing sounds or feeling vibrations.

@tafelito
Copy link

I was having the same issue in 3.0.2 with meteor 1.3 and in fact this was working on 2.6.12. The problem is within the phonegap plugin for iOS, that expects an ios field within the options parameter when initializing the plugin. To solve this, this is what I ended up doing when I call the Push.configure.

Push.Configure({
      "ios": {
        "sound": true,
        "badge": true,
        "alert": true
      }
});

I didn't try it using the config.json but I guess it will be the same.

I hope this helps

@raix
Copy link
Collaborator

raix commented May 19, 2016

@tafelito could you try 3.0.3-rc.4 - this is using the latest cordova plugin

@tafelito
Copy link

@raix, when I trried switching to 3.0.3-rc.4 but I got an error while compiling, so I had to add this to the mobile-config

App.configurePlugin('phonegap-plugin-push', {
    SENDER_ID: 'XXXXX'
});

With that I got it to compile, but it still needs the ios paramater to be setup in the Push.configure. The reason behind this is that the phonegap plugin is expecting it.

NSMutableDictionary* options = [command.arguments objectAtIndex:0];
NSMutableDictionary* iosOptions = [options objectForKey:@"ios"];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants