freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

registerForPushNotification() not always triggering PERMISSION_REFUSED_EVENT #42

Closed neuronix closed 7 years ago

neuronix commented 10 years ago

Hi,

First of all, the master branch is currently broken! There is a mean typo in PushNotification.as: TOKEN_FAILT instead of TOKEN_FAIL. Develop branch is fixed and should be merged as soon as possible.

However, even in develop branch, the PERMISSION_REFUSED_EVENT is not dispatched by registerForPushNotification if the user has already disabled push in his settings. Example: install, refuse push, uninstall, reinstall (no popup on second installs) => no fail event, no success event

Regards,

Cameron