Giter VIP home page Giter VIP logo

spotify-widget's Introduction

spotify-widget

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

NOTICE

Spotify widget has been released in my app TuneTrack. This repository's code no longer works and as a result has been archived. If you'd like to use the widget, please download the app from the App Store.

Preface

This widget isn't meant for general usage. 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 at the time of release!), 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!). Update: This issue was fixed with a new release of an iOS 14.0 Developer Beta.

Video Demo

Twitter link

Images

spotify-widget's People

Contributors

ifisq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.