21 January 2015
Local/Push Notifications Moved to a Plugin
Starting in Corona SDK build 2015.2542, local and push notifications have been moved to a plugin. If you’re using this feature, you will need to update your project’s
build.settings file so that the
plugins table includes the following:
publisherId = "com.coronalabs",
On Corona Enterprise, there will be plugin binaries available in the plugins zip corresponding to the above daily build.
iOS Push Permissions Dialog
One of the benefits of this plugin is to give you more control over the timing of the push notification permissions dialog, an often requested feature. With this plugin, push notifications on iOS are no longer automatically registered — instead, you must explicitly request for the use of push notifications, prompting iOS to ask for permission:
local notifications = require( "plugin.notifications" )
Since notifications are now a plugin, we are deprecating the following core APIs:
These deprecated APIs will eventually be removed, so we recommend that you migrate your code as soon as possible. For your convenience, we have modified these APIs to call through to the new plugin APIs, but you must still include the notification plugin.
Please refer to the notification documentation for complete details.