-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Not working in Ionic 2 #1219
Comments
|
Sorry for replying late.I was out for a while
|
I don't use Ionic 2 so its difficult to say. I would try the ios10 branch as that may (or may not) help with Android. I'm not the plugin author though. The above code should work but we put everything in arrays. If it worked in Ionic 2 beta and not in Ionic 2 Release then it does point to the Ionic 2 and Local Notifications not working together. |
@rwillett run |
Can you explain your comment. We don't run Ionic 2 so we don't have the problem. Who is your comment aimed at? |
@erangeles - didn't work !! |
@sahildaga95 Please try to set the ID as a string
|
@apfelstyle - According to the documentation here .It should be a Number, not a string. |
@sahildaga95 |
We never use a string, only a number. |
@apfelstyle - As I have stated in the first comment, the issue is regarding sound and logo.Along with the OnClick events which aren't firing. Not in the context of Scheduling & what you have mentioned seems like a bug to me rather than a solution. |
Is this still an issue? |
@rwillett - Yes it is,I am awaiting response. |
@rwillett - Did you get time to look at my issue? |
I am not the author of the plugin. |
I am facing the same problem.Notification is set properly but not showing on android device. if(this.platform.is('cordova')){
|
Please try with 0.9-beta. Be aware that the current Ionic wrapper does not work with 0.9-beta. Because many are using the plugin+ionic I will contribute to the ionic-native wrapper in future. But for now I am closing all ionic related tickets because they point to old code and/or Ionic. |
Your Environment
Plugin version: latest
Platform: android/ios
Device manufacturer / model: Samsung ON5
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.0
OS: Linux 4.4
Node Version: v7.4.0
Expected Behavior
Tell us what should happen
Plugin should notify with sound if no sound file path is provided.On click Behaviours not working.Plugin should display image as logo and sound file when specified path.Backdated Notifications not getting displayed immediately.
Actual Behavior
None of the above is working.
Tell us what happens instead
Notification triggers with no sound and image
Steps to Reproduce
Install plugin - ionic plugin add de.appplant.cordova.plugin.local-notification
Reproduce this issue; include code to reproduce, if relevant
Home.ts
Home.html
<button ion-button color="secondary" (click)="showNotification()">Show Notification</button>
Context
Features like sound and image were working till Ionic was in Beta Version after the RC and Final Release none of them are working properly.
What were you trying to do?
I was implementing the plugin for my application for reminder related notifications.
Debug logs
There are No debug logs of error
The text was updated successfully, but these errors were encountered: