jacc / spotify-widget

This is an application/iOS 14 widget I wrote to display your Now Playing Spotify song!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotify-widget

This is an application/iOS 14 widget I wrote to display your Now Playing Spotify song!

Preface

This widget isn't meant for general usage yet. It serves more as a proof of concept, and a demonstration of what you can do with WidgetKit! If you'd like to take a look at the widget's code, click here. There's still a few issues with WidgetKit (because it's only 2 days old!), and that leads to the widget crashing from time to time. If you have suggestions or want updates on the widget, check out my Twitter!

Installation

  1. Download the GitHub source files.
  2. Open the .xcodeproj file
  3. Switch the bundle identifiers & Team to yourself for the CustomWidgets and sqwidgetExtension targets.
  4. Change the App Group in CustomWidgets and sqwidgetExtension to your own thing. (e.g. group.dev.aryanjnambiar.CustomWidgets.app). These HAVE to be the same for it to work.
  5. In ViewController.swift, change the defaults on line 37 and line 121 to point to your App Group. Do the same in line 84 on sqwidget.swift
  6. Try building/installing it!

Note: I haven't had a chance to test this process out on another device, so if I'm missing any steps, please let me know!

Usage

  1. Open the CustomWidgets application
  2. Click login with Spotify
  3. Give the application permission to access your Spotify data
  4. Success! Try adding a widget to the homescreen.

Known Bugs

WARNING! Sole personality requested when nil; THIS MAY BE A SPURIOUS LAUNCH OF THE PLUGIN due to a message to an XPC endpoint other than the main service endpoint; personalities

To the best of my knowledge, this is an issue with WidgetKit. Just keep trying to build/run the app or extension until it works properly on your phone (it'll work eventually!).

Video Demo

Twitter link

Images

About

This is an application/iOS 14 widget I wrote to display your Now Playing Spotify song!


Languages

Language:Objective-C 51.4%Language:Swift 36.6%Language:C 8.4%Language:TypeScript 2.3%Language:C++ 1.3%