How to make spotify url prompt to open the Spotify app, not open the web-app? - spotify

I'm making my own smart link page:
https://www.hooklust.com/oo.a/
(only part way through - ignore the horrible styling)
and can get the Spotify link (top green button) to open the song in the Spotify web app, but how is a service like this...
https://songwhip.com/hooklust/sekai-heiwa-world-peace
able to prompt to open the Spotify app after the Spotify link is clicked please? When I click theirs, I see the "Open Spotify - https://songwhip.com wants to open this application." prompt.
Thank you

One way to open the link directly in the app is to use the URI instead of the URL, e.g. in your case link to spotify:track:2bmgv7q8RgC0NgF9SlGlpe instead of https://open.spotify.com/track/2bmgv7q8RgC0NgF9SlGlpe:
<a href="spotify:track:2bmgv7q8RgC0NgF9SlGlpe" target="_blank">

Related

Google OAuth not working when a user clicks from a LinkedIn link

When a user clicks a link to my site inside their LinkedIn app it doesn't take them to Safari or Chrome, it keeps them in an internal LinkedIn browser.
If the user then tries to create an account via Google OAuth they get the following error (see image).
Is there a way to prevent LinkedIn from opening a link in their proprietary browser, and take them to Safari or Chrome automatically? Or another workaround for this issue?
Neither you can restrict LinkedIn to open your site in other browser nor to stop google to throw the error. To solve this problem, You have to write a script which will open your website in the default browser of the user's device. Whenever user hit your website then check the web browser if it's chrome, safari or any other web browser then continue the request else force the user to open website in user's default browser using the script. That's it.
Hope this suggestion will help you.

How to redirect user to the playlist from the click of spotify button without the need to log in?

I am using Spotify Widget and the embeded code is
<-iframe src="https://embed.spotify.com/?uri=spotify:user:erebore:playlist:788MOXyTfcUb1tdw4oC7KJ&view=coverart" width="292" height="80" frameborder="0" allowtransparency="true"></iframe>
There is an option for embeded code where you can show the playlist like,
<-iframe src="https://embed.spotify.com/?uri=spotify:user:erebore:playlist:788MOXyTfcUb1tdw4oC7KJ" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>
But due to size limitation we cannot use this code.
I would like to have the ability for users on my site to click the Spotify button on my homepage and be directed straight to playlists I have chosen. Right now, I can only see one song at a time and if I click the Spotify icon
it just take me to the home page of Spotify and invites me to register or log in. Is there an easier way to direct my users straight to the music I've chosen for the theme of my website?
Thanks
I'm a bit unsure of how you exactly want it to look and work but you can always link to the open pages, here is an example (that will send the user to the open.spotify.com site tho):
http://open.spotify.com/user/spotify/playlist/1GQLlzxBxKTb6tJsD4RxHI
The playlist will start playing if you have the spotify desktop app open.
You can get an open link for any playlist in the Spotify client by pressing the (...) button in the header of a playlist and pick "copy http url".

is it possible to launch an extension from a website?

Had a qq: is it possible to launch an extension (that is already installed) when someone clicks on a link ?
For example, let's say on my website I have a button that says "click here to launch the extension". After they install my chrome extension, when a user clicks on this button, could the extension launch? (e.g.- the popup to open).
The goal is this: I have an extension that acts like a search bar. I also have search on the website, but I wanted it to search using the extension instead of the website if a user chooses to.
Thanks for any info,
Y
If you are asking for a way to programmatically open the extension's popup, then you will be disappointed (as it cannot be done).
If it serves your purpose, you could do something like this:
Have your extension inject a content script into your webpage.
Have the content script bind to a button's click event.
When the button is clicked: Pass some parameters to the extension's background page, let the extension perform the search and send the results back to the webpage.

how to open a itunes link in uiwebview

Is it possible to load a app store link in uiwebview. I have tried to open it in uiwebview but it doesnt load in there. I dont want users to leave my app when they click on the url from my app. Is it possible?
Regards
Pankaj
iTunes content does not have an "iTunes Preview" page on mobile - iOS automatically recognizes itunes.apple.com links and opens the store.
If you want to keep the user within your app, use SKStoreProductViewController to open the store to a specific piece of content. After the user dismisses the sheet, they are still within your app.
http://developer.apple.com/library/ios/#documentation/StoreKit/Reference/SKITunesProductViewController_Ref/Introduction/Introduction.html

How to open a webpage within a BlackBerry application?

I need to open a webpage from a BlackBerry application. I don't want to use a hyperlink so that users have to navigate to the blackberry browser application.
So, I basically need a full screen where the content of that particular page can be loaded just like a browser.
Is weblinks the answer to what I need or do I need to just invoke a browser session?
Thanks!
For BlackBerry applications you can use
BrowserSession session = Browser.getDefaultSession();
session.displayPage(url);
It will automatically open the browser with the given url. It's basically invoking the browser in your application context, so pressing the back button will take the user back to your application.

Resources