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

Notification doesn't raise in notification bar #1210

Closed
Siva-93 opened this issue Feb 10, 2017 · 6 comments
Closed

Notification doesn't raise in notification bar #1210

Siva-93 opened this issue Feb 10, 2017 · 6 comments

Comments

@Siva-93
Copy link

Siva-93 commented Feb 10, 2017

Hi Katzer,

I'm using your Cordova-local-notification plugin in my Cordova app.

In my project I used

  1. https://github.com/katzer/cordova-plugin-local-notifications#ios10
  2. Cordova 6.4
  3. ios 4.3.1

So, this my problem. I can get the notification on the time, the trigger is working good. What the weird thing is happened means, the notification doesn't show in the notification bar in ios 10.1. But the same code working good on android.

var new_schedule = {
id: 1,
text: notificationTitle,
at: timeStamp,
badge: 1,
};
cordova.plugins.notification.local.schedule(new_schedule, function() {
console.log('notification scheduled');
});
cordova.plugins.notification.local.schedule(new_schedule, function() {
console.log('notification scheduled'); // it gives true
});

This is the code I used in my project. I even checked for permission also but it gives true for me. What would be the issue. Please help me.

@rwillett
Copy link
Collaborator

Use the template in #1188 to provide the right information.

When you update this, add in more about what you expect to see and when, e.g. is the app in the foreground or background? What are your notification settings in the control panel.

We get notifications appear at the top of the screen when we set them.

@Siva-93
Copy link
Author

Siva-93 commented Feb 13, 2017

My environment:

  1. https://github.com/katzer/cordova-plugin-local-notifications#ios10
  2. Cordova 6.4
  3. ios 4.3.1
  4. ios 10.1 device

Expected Behaviour:
Notification should show in the notification bar when expected time is reached.

Actual Behaviour:
When notification time is reached, the notification badge is set, the trigger event is happening, the only thing it is not showing in the Notification bar either app is running in background or foreground. I have given enough permission for the app to get the notification in the notification bar. Tested in IOS 10.1 device.

Steps to reproduce:
Just install this plugin https://github.com/katzer/cordova-plugin-local-notifications#ios10 and set the notification.

@rwillett
Copy link
Collaborator

We use this specific plugin on IOS 10 and we do get notifications shown in the bar. See #1176.

@Siva-93
Copy link
Author

Siva-93 commented Feb 13, 2017

Still I'm not getting it.

@rwillett
Copy link
Collaborator

You need to start to look into your code and configuration.

We have it working with that plugin version.

I'd create a dummy app and start from there.

@rwillett
Copy link
Collaborator

rwillett commented Apr 9, 2017

Closed as no update from original poster

@rwillett rwillett closed this as completed Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants