katzer / cordova-plugin-badge

Access and modify badge numbers
Apache License 2.0
408 stars 253 forks source link

What does hasPermission() pass to the callback? #90

Closed chmac closed 7 years ago

chmac commented 7 years ago

Does hasPermission() pass a boolean to the callback? Couldn't figure that out from the docs.

I had a quick look at the code for ios and I guess from my very limited knowledge of C that it probably does return a boolean but wanted to double check. Happy to submit a PR to clarify the docs once I know for sure.

katzer commented 7 years ago

@chmac hasPermission() and registerPermission both pass a boolean to the callback.