I am opening LINE app from my native iOS app and my requirement is, i need to open line app with specified user chat screen.
I am not able to open specified user chat screen with line URL scheme. I tried below URL schemes but it only open line app. Please help me on this where i am doing wrong.
line://oaMessage/UserlineID
https://line.me/R/ti/p/UserlineID
line://ti/p/UserlineID
I had similar issue. I finally found a solution:
http://line.me/ti/p/~{LINE_id}
Just add ~ in front of {LINE ID}
With this way you can open line app with specified user.
if let url = URL(string: "line://ti/p/#UserlineID") {
UIApplication.shared.openURL(url)
}
Put your line id after #. Like line://ti/p/#jld859s8
Swift 4:
if let url = URL(string: "line://ti/p/#UserlineID") {
UIApplication.shared.openURL(url, options: [:],completionHandler:nil)
}
For Line Messenger you can follow three general strategies to connect with other users:
Firstly, some others have already suggested this, you can use this link:
line://ti/p/<LINE_ID>
The problem is that this link has been depreciated due to a security vulnerability
source: https://developers.line.biz/en/docs/messaging-api/using-line-url-scheme/#if-the-user-hasn-t-installed-line
Secondly you can use the more recent link:
https://line.me/ti/p/<LINE_ID>
This redirects to a page with a Line Messenger QR Code, that your user can use to trigger the opening of the app. Its a halfway solution (although safer than #1)
Lastly if you want to save your users from the extra action/click, Line also allows you to download the QR Code from the app itself, so you could display that directly to your users in the desired location.
They have updated their documentation.
What we shall do now is follow this pattern
https://line.me/R/oaMessage/{LINE ID}/?{text_message}
For instance, if we want to send "Hello" to Line ID #abc, we shall use https://line.me/R/oaMessage/#abc/?Hello
I hope this helps someone who is searching for the latest available approach.
line://ti/p/~phuongledao?oat_referrer=PROFILE
use this link to open the app from the browser
https://line.me/R/ti/p/UserlineID
line://ti/p/UserlineID
The above schemes don't always work (it could work with some UserID but not with others), I called Line support and they give me another alias for the UserID (this time without the #) and it works normally.
Related
There any way to open UberEats app in a specific restaurant page using URL Schemes, Deep link, SDK or anything else?
I found that and works with current version. Url schema:
ubereats://
on the current app you can share a store item and the deeplink is:
ubereats://store/browse?client_id=eats&storeUUID={STORE_UUID}&itemUUID={ITEM_UUID}
or simply open the store:
ubereats://store/browse?client_id=eats&storeUUID={STORE_UUID}
or apply a promo code:
ubereats://promo/apply?client_id=eats&promoCode={PROMO_CODE}
I hope to help
For me this works:
ubereats://promo/apply?client_id=${uberEatsClientKey}&promoCode=${PromoCode}
It's the same as Uber. You can check the documentation of Uber.
I am trying to integrate More Apps button inside my app. When user press this, I want to navigate to App Store and open my developer's app page. Expecting to work iOS 8 and above. If anyone did this before, please give me solution. Thank you in advance.
This can be done by simply having the app open a link. Now this link depends on your developer account. I cannot tell you what your link will be. However, it will look something link this:
https://itunes.apple.com/us/developer/id(some id here)
Note that the id is NOT your developer team ID. I really don't know what this id is. You can find it by navigating to one of your apps on the website version of the App Store called iTunes Preview. Simply go to google and search up one of your app's names like so:
AppName by Muzammil
Once you have opened this page, you will see the link "more by this developer". Click this, and copy the link of that page. Then you can just have your app open that link to show your list of apps on the App Store.
Here is the code to open a link just in case your need it:
let yourDeveloperURL = URL(string: "https://itunes.apple.com/us/developer/id(some id here)")!
UIApplication.shared.open(yourDeveloperURL, options: [:], completionHandler: nil)
Hope this helps!
I need to show a preview of a URL (like FB and WhatsApp do), while the user is entering a link in a UITextView.
Is there a library on iOS to grab it, or do we have to make our own?
Thanks in advance.
iOS does not provide this functionality by default.
You will have to build your own or use an open source solution.
This project might provide what you need:
https://github.com/itsmeichigo/URLPreview
To launch app page in App Store app on iOS 7, this URL format is required:
#"itms-apps://itunes.apple.com/app/id%#"
Can you also append the affiliate ID and campaign token to this URL like this?
#"itms-apps://itunes.apple.com/app/id%#&at=%#&ct=%#"
Or does it have to be a plain
#"https://itunes.apple.com/app/%#/id%#?mt=8&uo=4"
type URL like you do in websites? Disadvantage of this URL is it opens Safari and causes redirects.
Try it and see; the link will either open or it won't, and if it does, and if you specify a custom campaign for testing, it will either show up in PHG or it won't. Let us know what happens, as I'm curious myself.
Oh, and if it doesn't, please file a bug, as that seems like a useful feature, and it should be trivial for Apple to add it if they haven't already.
My app uses a custom URL scheme so i send a link to my users in an email which when clicked, launches my app installed on their devices. This was working seamlessly till iOS 6 came into picture.
Now when the users click on the link or even type the address manually in the safari they get an error saying "Safari cannot open the page because it is a local file."
Wondering if anyone else encountered the same or if someone has any pointers in this regard !!
Any help much appreciated...
Update: it works if I only give my app's custom url without any parameters.. e.g. if I do "reader-app://" it launches my app but if i do "reader-app://doc=xyz" it doesn't !
try: reader-app://?doc=xyz (add a question mark after //) this way you'll specify a query string. It works for me, but it presents an alertdialog asking the user if she wants to open the url with my application
Try to remove the - sign from reader-app://.
My URL was not working until I removed underscore sings from URL.
Ex:
my_app:// is not working.
myapp:// is working.
That is just a guess.