Type Library Revision 2017.3060 Keywords iTunes, media, library, song, music Platforms iOS
The iTunes plugin enables you to access the user's iTunes library and play media from it.
You must include the following keys/descriptions in the plist
table of build.settings
. When the system prompts the user to allow access, the associated description is displayed as part of the alert. Note that these descriptions can be customized to your preference and they can even be localized (guide).
settings = { iphone = { plist = { NSAppleMusicUsageDescription = "This app would like to access your music library.", }, }, }
local iTunes = require( "plugin.iTunes" )
To use this plugin, add an entry into the plugins
table of build.settings
. When added, the build server will integrate the plugin during the build phase.
settings = { plugins = { ["plugin.iTunes"] = { publisherId = "com.coronalabs" }, }, }