iOS custom URL Scheme not recognized on incoming SMS - ios5

I created an iOS app that registers a new url scheme.
On my development phone, everything works fine. All urls of the new scheme appear underlined, as a link, in the SMS app, notes, email and safari. I can click on the link and my app will be brought up.
However, when I distribute the app to other phones, using an Adhoc provisioning profile, the urls are not recognized only in incoming SMSs. If someone sends a message containing the url to me, it is not underlined as a link. If I send a message containing the url to myself, the link appears only in the sent message, not in the received message.
Has anyone been through this? Any ideas?
I ran out of options....
thanks!

Related

itunes Connect test flight beta - no app for download

I have an app in iTunes connect that I'm beta testing with external users. Some invited testers are not seeing any app available for download in iTunes connect. What could be causing this? Thanks.
I have seen this where iTunesConnect shows the user has not accepted the invite to join (I don't know whether the user did not, or that ITC has the user in the wrong state). It seems that they still get the messages about new builds, but can't install them. I found that I could not re-invite them, even removing and adding their email did not help. The only way I found to fix it was to add a new alternative email address for those users.
Update
I have now seen myself why gmail addresses are a particular problem. Opening an invite email in the gmail app and clicking the link does not work. Even if TestFlight is installed it only shows the app briefly and then redirects to the app store. If you open the email in the Mail app instead then when you click the invite link it opens in TestFlight and asks you to install the app as expected.

iPhone url scheme with content body to SMS

I'm a Java/Web developer and I don't know anything about iPhone applications.
I did search on the Internet and the following steps are what I think people suggested but I want to confirm.
I would like to know if the following steps will allow me to send a content body to SMS messages when a user clicks on a link on a web page.
Build an iPhone app that takes content body and receiver phone number.
Make the visitors to my webpage download the iPhone app in #1 (using javascript to check if s/he already has it and a custom url scheme to open the iPhone version of "PlayStore")
The visitor installs the app.
Call the iPhone app in #1 using a custom URL scheme, from a link on a web page. This link contains the phone number of the receiver and a content body
The iPhone app in #1 then opens the native SMS app in iPhone, this time with a body.
Is this
1. possible ?
2. the right way to do ?
EDIT :
To make things clearer, what I need are...
It shouldn't be the web server that sends the SMS. The client who gave us the job does not want to pay for that. The client wants each visitor send their own SMS and pay for it.
I made a mistake. The phone number of the receiver should be empty. Only the content body is pre populated. So if I clicked on the "send SMS to my friends" link(on a webpage), it opens the native SMS application.(at least, this is how it works on android devices currently). And then the visitor would type in or select the phone number of the receiver from the contacts on his device.
No, you cannot open the SMS app with a message body. The only way to send it is by using MFMessageComposeViewController (iOS 5.0+) as shown in this page. If you need to support earlier versions, you are out of luck.
I'm not sure that Javascript can "check" that the device can run a url scheme either (I'm almost certain it can't check what apps are installed), but I'm not an expert at that kind of stuff.
As far as you are launching your application with some data using Custom URL Schemes this might help you calling your app with some parameters
http://www.idev101.com/code/Objective-C/custom_url_schemes.html
For step #5 its not possible
Short Answers:
No.
No. The "right" version would be to send the SMS from your webserver, using something like NowSMS.

Facebook deep linking not working on iPhone

I have a problem with Facebook integration in my application. I am working on giving the user an option to post his latest update to Facebook.
I can successfully post the message the Facebook, but I have problems with the "via MY_APP" section - the MY_APP is not clickable from my iPhone. The name of the app appears correctly, the message is published as I intended it to be, but when looking at the post from Facebook on iPhone, users are not able to click the name of my application in order to get them redirected to the AppStore or the application itself, depending on whether they have it installed or not. That usually works on my iPhone for other iOS apps.
When viewing the Facebook profile from a computer, my application name is clickable and it takes me to the app's community page (I set it up from MY_APP->Edit app->Settings->Advanced->App Page as I though it was required in order to solve the problem on the iPhone, but it didn't solve anything).
On the Settings->Basic screen I configured everything correctly (I think):
Native iOS App is chosen as integration type, and the options are as follows:
iOS Bundle ID: my bundle ID (checked it, correct)
iPhone AppStore ID: the ID (checked it, correct)
iPad AppStore ID: the ID (checked it, correct)
iOS SSO: Enabled
iOS Native Deep Linking: Enabled
URL Scheme Suffix: I left it blank
I also edited settings under Settings->Advanced for Authentication tab:
I changed the App Type from Web to Native/Desktop and disabled the sandbox mode.
Do you guys have any idea what is preventing me from being able to click on the application name when viewing the post from iPhone?
Thanks

App request doesn't work in iPhone browser but works in Facebook application

I'm sending an application request from my iPhone application and want the user to be redirected to the App Store page when he accepts the request.
In the application settings I've added the "App on Facebook" item with fake Canvas URLs besides "Native iOS App" in order to see the requests (they don't appear with no Canvas URL). Everything works fine in Facebook application on iPhone/iPad but doesn't work in the Safari browser on the device.
The request doesn't bring the appstore but open the error page:
Error
Sorry, the application you were using is experiencing a problem. Please try again later.
I've seen some other apps which works fine: request being clicked in the browser brings appstore. So guess something is missing in app settings or similar. Any clues?
Have you tried using your app store link as a URL?

iPhone: How to Programmatically Respond to SMS Messages

After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in the background and based on specifically formatted SMS messages would be able to take specific actions.
Does anybody know if this is possible with an iPhone SDK application and if so, provide a pointer to information about how this can be done?
Unfortunately, you cannot intercept - or be notified of - incoming SMS messages with the iPhone SDK.
One possible alternative, is to register a custom URL scheme that launches your application when a url with that scheme is embedded in the sms message and the user cicks on it.
to set a custom url scheme, you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist.
In your Application's delegate, you can then implement the application:handleOpenURL: method to get any paramaters that were passed to your App from the url in the SMS message.
I believe that currently the SDK doesn't allow for background apps (except for apple ones).
BREW and J2ME had (and probably still have) ways to launch your app via specially formatted SMS, which may be what the Jeff is referring to.
Apple does have the upcoming Push Server which will allow you to send the user an alert which will give them the option of launching your app, but you cannot launch your app for them.
Unfortunately just registering an URL scheme dosn't help you at all, because the SMS app makes "http://" urls clickable only...
You can use CoreTelephony framework.But you must user some private api.And I have some demo code for this. https://github.com/edison0951/AppNotifyBySMSDemo