Capacitor plugin for Apple Music authorization
npm install apple-music-auth
npx cap syncTo enable Apple Music authorization, you need to add the required permission to your iOS project:
- Open the plugin’s Xcode workspace:
ios/AppleMusicAuth/Plugin.xcworkspace - Select your Target → Info → + to add a new key.
- Add the following key and description:
| Key | Description |
|---|---|
NSAppleMusicUsageDescription |
We need access to Apple Music to authorize user accounts |
⚠️ This method is simple and reliable. In Capacitor 7, it is no longer necessary to modifyInfo.plistviaplugin.xml.
requestUserToken(options: { developerToken: string; }) => Promise<{ token: string; }>| Param | Type |
|---|---|
options |
{ developerToken: string; } |
Returns: Promise<{ token: string; }>