Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Conversation

@moskeyombus
Copy link

Related to Issue #1333

Problem

(https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/API.md#pushnotificationhaspermissionsuccesshandler---android--ios-only)
phonegap-plugin-push has a method called hasPermission that can be used to determine whether or not a user has allowed push notifications for a specific app in iOS/Android settings. ngCordova's implementation of this plugin does not include this method.

Solution

Added a hasPermission method to cordovaPushV5. Also, there were no specs for cordovaPushV5, so I added a spec file and wrote specs for init and hasPermission.

Details

I wanted to open this PR and get feedback before writing the entire spec suite for $cordovaPushV5, but I'd be happy to either add that here or open another PR. Also, $cordovaPushV5 appears to not have any mocks in place, same thing, can add here or open another PR for those as well.

@moskeyombus
Copy link
Author

Build failure should be fixed by #1329

@moskeyombus moskeyombus force-pushed the add-push-plugin-has-permission branch from 91d64e8 to e65137c Compare August 26, 2016 15:21
@gortok gortok merged commit a38470e into ionic-team:dev-next Sep 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants