Search code examples
react-nativespotifyapplinks

I'm trying to make a react native app that is able to open Spotify and play a song


I have an app that i would like to connect to spotify so when my user pushes a button it will search in spotify for a song/playlist with predefined parameters that i will set. For example i will have two buttons one for hip-hop and the other for country. Once the user pushes a button I would like to redirect them to spotify and search the corresponding button title and maybe play the song. Similar to what shazam does to discovered songs you search on the app.


Solution

  • Spotify has a pretty mighty sdk and you should use it. To be able to access all features you need to use their SDK on native side. The topic is too big to answer it here via Stackoverflow.

    React-Native native Module Guide for Android - React-Native - Android Modules

    React-Native native Module Guide for iOS - React-Native - iOSModules

    Spotify's Android SDK Guide - Android

    Spotify's iOS SDK Guide - iOS