I want to open NAVER's LINE.app from within my iOS app using a URL scheme, and let my user share my iOS app using the preset string and AppStore URL.
I already set LSApplicationQueriesSchemes, and I know how to share a string to friends (using line://msg/text).
But how can I let him post it to the timeline? I even can't get to the documentation page but they clearly said it is feasible in the docs.
User selects who to share the content with. (Content can be shared with friends or posted on the user’s Timeline).
NOTE: I don't want to share it via Activity Controller. I want to use UIButton to trigger the share action.
Related
I am developing an SwiftUI App that app involves with creating notes like an usual to-do list app. The exception is that the note must be able to be shared to another users via Microsoft Teams, Messengers and WhatsApp.
Thus, I tend to implement some sort of functionalities to send another user one URL link. Every time the users click on the link from third-party app (WhatsApp, Teams, FB), the link will prompt and navigate users to the app that I developed and installed on their machine. Based on the URL my app will perform specific actions.
How I can do that. My current attempt is to define a customer URL for the SwiftUI app.
Thanks for reading this question, cheers.
You are looking for Custom URL Scheme and Universal Links
From documentation:
Custom URL schemes provide a way to reference resources inside your app. Users tapping a custom URL in an email, for example, launch your app in a specified context. Other apps can also trigger your app to launch with specific context data; for example, a photo library app might display a specified image.
let url = URL(string: "myphotoapp:Vacation?index=1")
UIApplication.shared.open(url!) { (result) in
if result {
// The URL was delivered successfully!
}
}
I have an app where you can have your favorite restaurant listed and add their details like name,image,comment,rating,etc.
Now I need to support a feature of share restaurant what I am doing right now is I am storing the data to Firebase so that data can be shared.
What I would like to do is I want to create a link for the same.. which will be sent in the iMessage when clicked on share button and then when the person with whom I shared my restaurant detail clicks on the link in the iMessage I want to open the app in his device ?
So that I can load data of the restaurant from firebase and show them in the app.
P.S. the app is actually offline that is not storing on the server. Just to support the above feature I am sending data to firebase. so that I can retrieve it !
You can use firebase dynamic links for that:
https://firebase.google.com/docs/dynamic-links/?authuser=0
You can also send some parameters in the dynamic link.
I am new in handling apps that will be connecting with Facebook.
I want to let my user log in my app with Facebook account and be able to send something, for example, a gift to their Facebook friends.
I want to get the user's friends list and which is very easy by using FBFriendPickerViewController. However, I want to have an effect that if their Facebook friend(s) is/are also using my app, the app icon will be shown at the right hand side of the user table cell (Just like some Phone Contact lists will show if the contact has Whatsapp/ Google+)
I have been searching through sites but still find nothing about this.
So my question is, is there any "official" way (using Facebook SDK method) to show the icon?
Or I have been thinking of another approach is that, I first get the friend list and then saved it, with the information that whether the "friend" is using my app or not. Then I create a custom friend picker view and check the condition to enable/disable the visibility of the app icon.
I can get the information by using approached of using GraphAPI fields or using external database, for which are mentioned in this , this and this .....
Anybody help?
Ok I end up with customizing my own table view... : )
How do I trigger a programmatic post to a specific person's Facebook wall so that it looks like this (but replace GO TRY IT ON with my app):
I do not want this to be a generic post to the world. I want this targeted to the specific user's wall whom I specify. I want to include a specific message. I already have social discovery for my app enabled (meaning that I can see my app when I search facebook on my iPhone, and I see it in my list of apps such that I can tap the row and launch my app from facebook).
Looks like you want to familiarize yourself with the concept of the Open Graph -> https://developers.facebook.com/docs/opengraph/
product is obviously an object defined in that apps open graph settings, and suggesting is an action that can be undertaken with products.
So what you've shown us in this picture is not a normal post, it's the publication message of an Open Graph action.
But I'm not aware of any simple way to make this publication visible only to one user. The general visibility is set by the user in the auth dialog for your app. I don't know if there's a way to further restrict visibility for a single action publication, maybe by dynamically creating a friendlist with only that one user in it or something …
I'm trying to figure out the best way I can inform analytics trackers that the page view is coming from my app, rather than a 'direct visit' (for example).
I have an app that displays a list view of tons of different news stories, and I want to make it so that, when a user taps on one of the stories, and it is displayed in my UIWebView, the website being loaded is somehow informed that the referral came from 'example-iphone-app', or maybe my iPhone app's website?
Is there any way to manipulate the http request to make the iPhone app act as if the link is being opened by a referral link on my website?
I was originally thinking of just adding a query string with a parameter like ?source=myappname, but realized this is not a reliable (or even useful) way of alerting site owners with Google Analytics, SiteMeter, Urchin, etc. from where the request has come.
If you're using Google Analytics then you can set the utm_source and utm_medium query parameters and they will be displayed as the referral source. utm_source is where you would put your myappname parameter and utm_medium should probably be set to referral unless you are charging per click then it is usually set to cpc.