Open my iPhone app from the url received in sms - iphone

I want to launch my application from the url received to user via an sms.
How do I achieve it?
The format of my url is:
https://companyname.net/productname/?some_parameters_for_user
I want to prompt user to open url in safari or my app and depending on his choice, the app will be launched either in safari or directly the native app.
The url opens in safari but how to invoke native app? and take user to a particular page in app?
Please help.
Thanks in advance.

Look at the custom URL scheme. It's described in several places. Here is a link to "Advanced App Tricks"
It's described there, along with many other helpful ideas.

Related

Opening Another Application From My App

this is my first question on the site so if i don't cover anything please let me know and i'll try and fix it :P
I'm trying to make my application load another app from inside the app. An example which i can use to make what I'm trying to do more clear is, I want to load FaceBook from my application without it loading a UIWebView. I would like to do this for Facebook, YouTube, Twitter & Instagram. Also if possible all going to specific areas on the site, so the Facebook profile, YouTube channel, Twitter Page & Instagram profile!
Also I know i would have to write an if statement for it to be, if the user has set application on their device then load in that application else if they don't then load in the web view
You want to use the URL schemes of the other apps. If you know the URL scheme of an app then you can use openUrl: to send a message to another application and bring it to the foreground.
After a quick search you can find some popular app url schemes here along with some examples.
You need to use URL Schemes, this wiki has the major ones listed
http://wiki.akosma.com/IPhone_URL_Schemes

windows phone 8: open facebook page in app from code

I need to launch the WP8 facebook app on a certain page, from my code behind, and if the app is not installed open the browser on that page:
right now i'm doing this:
var success = await Windows.System.Launcher.LaunchUriAsync(new Uri("fb://page/313689422066566"));
and I use success to try open the browser.
the app launches but it show my wall instead of the page, and if the app is not installet the phone ask me to search on the store in search of an app...
anyone can tell how to do this or where i can find some info?
thanks
Hey actually there's an undocumented (I found this by trial and error starting from this question) way to do this.
Launcher.LaunchUriAsync(new Uri("fb:pages?id=YOUR_PAGE_ID"));
What you're asking to do is not possible.
First, I don't believe it's possible to open the Facebook app to a specific page. I know you can use the fb: URI scheme to open the app and can even use fb:post?text=foo to start a new post, but I don't believe you can open a page.
Even if you could, the way URI schemes work in Windows Phone is that if the URI scheme is registered, it opens the app. If it's not registered, it asks you to install the app from the store. There's no way to send them to a web site instead that I know of.

How do I get Facebook to return to my app after login if using phonegap plain on iPhone?

I have a phonegap app that I use the Facebook plugin to implement single sign on. I registered am a native iPhone app since the app is not run in the browser. When I click on login I get an invalid URL error message. I suspect my problem is either I need to specify a URL which I have tried using channel in init but I get a URL not allowed with this configuration. The other problem may be that I need to register this application as a web app. However using phonegap the application does not have a url. I don't know what to do.
Any help is appreciated.
Thanks!
Did you look at the iOS URL scheme section of the Plugin's readme?

Open IOS Application which uses sharekit via fbconnect and/or sharekit from facebook app or facebook website

Does anyone of you know if it is possible to open a App which uses sharekit from a Facebook request by clicking on the request either in the facebook app, or in the browser?
I could not find anything about this in the web.
To be more precise i want my app which uses sharekit to send a request to a facebook-friend. This facebook friend should then be able to open the same app by clicking on the request either in the facebook app on his mobile device or by clicking on the request on the facebook browser page which is opened on his mobile device.
I already know how to share things in facebook via sharekit, but to get it "the other way round" seems to be difficult. I could not find anything helpful in the web so far.
Greets and many thanks in advance,
Maverick1st
Yes. Your will will need to register itself as a protocol handler, and the link clicked on from Facebook app would need to use the url scheme you define.
Example:
my-social-app://invite/1234
Keep in mind if the recipient does not have the app installed, or they do this on their desktop machine, they will get a message that the phone is unable to open that URL.
See this tutorial: http://mobileorchard.com/apple-approved-iphone-inter-process-communication/

Is there anyway to open a facebook URL in the facebook app of a phone? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
launch facebook app from other app
I was wondering if there is anyway I could put a facebook link into a webpage, and, if a facebook app is installed, to get the link to facebook open in the fb app instead of the broswer?
The facebook application link starts with fb://, (according to this site), for the iPhone. So in theory clicking a link that starts with fb:// would launch the facebook app.
The problem is that the web browser application (Safari, or some custom app) decides how to handle that link, and it won't necessarily try to open another app unless it is preprogrammed to do so. If you're planning to put this on a web page, for example, and browse to it from an iPhone, there's no guarantee it will work. Better off putting two links I believe.
Not sure if the same is true for Android.
If you are showing the webpage in a Web View you can intercept the link procedure in its delegate. When a link is pressed, the message is sent to the delegate to check if the request should proceed. If you detect that it is a facebook link, you can alter it to use the fb scheme and open it with UIApplication's openURL:. To check if there is an application that can handle the fb: link you can call canOpenURL:, also of UIApplication.
Facebook applications for handheld devices aren't standard. They mostly use the API and I don't believe any application would provide you a way to open an URL.