katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.75k forks source link

requestPermission Dialog only shows for iOS platform #1787

Closed SanjanaTailor closed 2 weeks ago

SanjanaTailor commented 5 years ago

Expected Behavior

In Android using below code doesn't show permission dialog itself when for iOS platform it shows this.localNotifications.requestPermission().then((permission) => { //permission });

Actual Behavior

Tell us what happens instead

It display local notification dialog for android behaviour for both iOS and android will be similar

haschu commented 5 years ago

Same issue here. @SanjanaTailor did you find any solution/workaround so far?

haschu commented 5 years ago

Haha ok, that was an easy one 😄

Turns out, that under android there is no need to request the users permission for displaying notifications. I guess this issue can be closed (although a small mention in the docs wouldn't harm).

SanjanaTailor commented 5 years ago

@haschu : right, For android there is no need to request to show permission dialogue for displaying local notification. As I understand end user might request to show same behaviour for both android and iOS right. can you share where is it mentioned in document as well ?