I have an application in the Apple app store that streams a live radio station and provides a list of tracks that have been played. The user can navigate to specific track in that list, tap a Spotify button and the user is directed into Spotify via Deeplinking, using the Spotify search route (example below):
spotify://search/artistName
This feature was working great (about 85% accuracy search on artist name) until recently. Spotify opens, but I receive a native alert:
Couldn't Open Link
Spotify can't open this type of link on this device.
Did the search route change?
Did Spotify disable this feature?
Removing the // from the URL works for me: spotify:search:artistName. Example in Swift:
UIApplication.shared.open(URL(string: "spotify:search:pink+floyd")!, options: [:], completionHandler: nil)
Related
I have a requirement to make WhatsApp calls from my application. When I click the mobile number in my app then it should redirect to WhatsApp and initiate voice/video calls without user intervention.
I've found a solution from the below link but it's opening application and landing on user chat window.
https://faq.whatsapp.com/en/iphone/23559013
There isn't an api for that. Whatsapp only allows interactions like sharing media such as video, audio and images as mentioned in the FAQ. I tried searching for official developer doc for one of my requirements but, was unsuccessful the FAQ seems to be the only official doc availabe:
If your application creates photos, videos, or audio notes and you'd like your users to share these media using WhatsApp, you can use the Document Interaction API to send your media to your WhatsApp contacts and groups.
The only thing you could do is open the contact page for the user. And then he has to call by manually clicking on call button. Maybe, give an info that suggests user to do so.
if #available(iOS 10.0, *) {
UIApplication.shared.open(NSURL(string: "whatsapp://send?phone=+91phonenumber")! as URL)
} else {
UIApplication.shared.openURL(NSURL(string: "whatsapp://send?phone=+91phonenumber")! as URL)
}
I want to open google classroom app through my existing iOS app on a button click (if classroom app available on the device).
Any URL scheme for google classroom?
I haven't found any Google Classroom app URL Scheme on URLs:
https://gist.github.com/bartleby/6588aa4782dfb3f1d50c23ce9a4554e3
https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/
LSApplicationWorkspace is a private API, so I cannot use it.
I can open the AppStore link for Google Classroom app and open the app from there but I am looking for a direct method like (URL Scheme, Bundle Identifier, etc).
Thanks in advance!
Open your Classroom course URL in Safari if the classroom app is installed on your iPhone it will open your Classroom app else safari will give you an option to View App on AppStore.
UIApplication.shared.open(URL(string: "your_url_str")!, options: [:], completionHandler: nil)
Make sure you replace the login ID number with the actual email id.
Ex:
https://classroom.google.com/u/<EMAIL_ID HAVING COURSE ACCESS>/w/<Course Id>/t/all
Dummy Url:
https://classroom.google.com/u/demo#gmail.com/w/nbmbms8709s/t/all
I used to have a UIButton that would load an URL in the form of itms://example.com this when pressed would load the relevant item within the AppStore application on iOS (rather than in the browser).
However that is no longer working for me. If I switch the URL to https:// then the relevant page opens in the browser but if I use itms or itms-apps then it does nothing. Any ideas why or if there’s a new way of doing this?
The use case is to refer people from one app to download another from the AppStore.
Using the http link should open directly into App Store app via universal links.
// open Google Earth in the app store
UIApplication.shared.open(URL(string: "http://itunes.apple.com/us/app/google-earth/id293622097?mt=8")!, options: [:], completionHandler: nil)
If you wish to keep the experience inside of your app, then use SKStoreProductViewController as pointed out by rmaddy
I have referred How can I place a WhatsApp call from an iOS app? which states that this feature is currently not available in iOS and as per WhatsApp FAQ Share Extension (Custom URL Scheme) it has still not mentioned any schema for placing a call, document it has mentioned:
Placing a WhatsApp call(voice call VOIP)
To make a WhatsApp call, simply open the chat with the person you want to call and tap Call in the top right corner.
Whatsapp FAQ Here
But placing a WhatsApp call from android is possible, Which I could not find in iOS.But placing WhatsApp call feature is available from phone contacts.
So my doubt is whether it is currently available in iOS to place a WhatsApp (voip)voice call from my iOS app?
If possible can you please suggest me with url schema(if available) for this just like place a chat from my app like this #"whatsapp://send?text=Hello%2C%20World!" as I couldn't find this?
I have google it and searched a lot on stackoverflow and https://faq.whatsapp.com
Seems like currently, video call from contact book feature is limited to OS level only.
But you can open particular contact then user has to manually tap on video call button.
This is regardless of phone no is stored in contact book or not. ( You can directly open )
I have tried this in Swift 3 code.
if #available(iOS 10.0, *) {
UIApplication.shared.open(NSURL(string: "whatsapp://send?phone=+91phonenumber")! as URL)
} else {
UIApplication.shared.openURL(NSURL(string: "whatsapp://send?phone=+91phonenumber")! as URL)
}
https://faq.whatsapp.com/en/iphone/23559013
Hope this helps you to figure out further way
I'm hoping to open a deep link to a show or movie in the Netflix app on the new 4th gen Apple TV.
I'm able to make deep linking work on iOS. The link below will open the Netflix app to a specific show or movie.
nflx://title/{showID}
for house of cards it's: nflx://title/70178217
When I try the same format on Apple TV, all that happens is the Netflix app opens without opening a specific show or movie. Siri search can open the app directly to a media item, so it seems like there should be a way for this to work.
Figured this out. Turns out you can use the regular netflix url structure, but replace http with nflx.
nflx://www.netflix.com/title/70291117 - Will open a show page
nflx://www.netflix.com/watch/70291117 - Will begin playing the video