urbanairship/phonegap-ua-push — pull request #71 by sandstrom (2014-01-14 16:53:22+00:00)
Title: Improve accept rate for push notifications permissions dialog

On iOS the permissions dialog is shown immediately, when the user opens the app for the first time. This causes many to deny permission to send push notifications.

By deferring the prompt until the app have described the utility of push messages the users are more likely to accept (and you will make more money, since more push notifications will be sent).

My proposed change adjusts the onload property. There may be other ways to achieve the same result too, such as launching the plugin but not actually show the prompt (until called for via the js api).