Sorry for my poor English. I have a problem & search for this several days :(.
I have to port an app in Android to iOS. It has a function about sharing to other user : users can send a text message to their to present current app, like : "Good app, visit ... to download".
In Android, this function allow user choose one app from all apps in device can send text message (Message, Viber, Skype, ....). It shows a popup with list of apps.
It's like this image :
It seem to be default behavior in Android, these lines of code is very simple. But in my iOS, i can't find the same way to make it ? I need your help ?
How can i get these app in my app, i have read about "url scheme" - it can help me go to other app from my app. But most important is i don't know what apps can't send text message in device.
A quite similar option on iOS that compared to intent is to use
UIDocumentInteractionController
See the documentation here:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDocumentInteractionController_class/Reference/Reference.html#//apple_ref/doc/uid/TP40009304
For social sharing only (Facebook + Twitter) you can use the SocialFramework on iOS6 or above:
https://developer.apple.com/library/ios/documentation/Social/Reference/Social_Framework/_index.html
The functionality that you're describing in Android is the ACTION_SEND Intent. You can read more about using this Intent to send text content to other apps in the Android Developer Training guide entitled Sending Simple Data to Other Apps.
As you seem to want this functionality for users to share the app with other users, iOS has the Social Framework for Social Sharing, or you could use a custom UIActionSheet to present the user with your own list of options.
Related
I know how to create website and android applications (little more than basics).
I want to create a website from where user write its email or id which he already set it in android app when he send the message from website it will be received on android application(also mine) where that email or id is already set.
Is there any tutorial on how to do this?
To be more specific I just want to communicate from website to some specific android application(mine) by using its id.
Just refer me to tutorials where I can learn this.
One way to communicate is via notifications(though not a standard way). For example, see Firebase
You could make use of app linking. You can add extras to the intent you fire from the website, which you can get when the app is opened.
Tutorial:
https://developer.android.com/studio/write/app-link-indexing.html
I am new to the android, I want to send the image and URL to messaging apps like whatsapp, hike, Messager, ect. First, I am using fireballs App Invites for this, but it supports only mail and SMS app. I want to use all apps. Is it possible to send a link with masking like links in web sites. In this image when we click on install it opens url, like this I want to send in whatsapp hike also For example: http://www.pupsor.com/cute-baby-puppys-14193.html this is my image url. Sorry for my English. please help me.
Each of the apps you mentioned have a different way of receiving data. Please check the documentation for each of the apps to learn more.
As an example, here is the documentation for WhatsApp.
Also, you will usually be able to pass a text String, without html formatting or images. Still, depends on the app.
So I'm thinking this may be impossible. But on each phone platform there is a convention to send an SMS link, that when clicked, will launch an application on the device and do something based on the parameters sent in the link.
Ex:
iPhone: Launch an app from a link in an SMS
Android: Launch Android app from within SMS/MMS message?
However is there anyway to do this that is effectively cross platform? For example I have an android phone with my app, and I send an invitation to a friend that has the same app but the iphone version (perhaps I don't know he has an iphone I just have a phone number). Is there a way to send a sms link that figures out it's being opened on an iphone, and sends the link to open the iphone version of the app? Perhaps there is a way to embed very simple logic into a hyperlink that changes based on what device it is? Is there any way to pull off something like this?
I realize I could send multiple links and have the user click the one that is appropriate, but that seems a little sloppy (especially as more platforms become available, it will be cumbersome to cram all the links into 1 SMS message for every device).
This is a difficult situation with no easy answer unfortunately.
Option A) You send a link that points to your server. This link identifies the device based on user agent and then forwards them to the proper sms: link for each platform.
Option B) If you know what type of device you are sending the link to beforehand, then you can determine the proper link on the server side before it is sent.
We are creating a landing page of sorts for our iPhone/Android app and on this page there will be a link to each of the respective app stores. However, when the user is on a computer, it's a bit cumbersome to access the app stores (particularly Apple's app store). So we would like to add a "send text message to phone" feature like Groupon does on http://www.groupon.com/mobile.
Now, my questions with this are as follows:
A) What sort of code do I need to put in to make this feature work? Is this super intensive or are there free or cheap options available out there to do this for me?
B) How does the code know whether it is an iPhone or Android that it's texting? Groupon took me immediately to the Apple store on it's link. Tried going through the source code on Groupon but it was a bit beyond my grasp.
Thanks for any help!
A few different things are needed to get this up and running:
You should use something like Twilio to programmatically send text messages
You need a page on your server (say http://mydomain.com/app_redirect) that sniffs user agents and then redirects the user to either the iOS AppStore or Android store respectively
Once you have those pieces it's fairly simple
Create landing page like groupons
When the user posts their cell phone to your server call Twilio to send out a text message containing the link http://mydomain.com/app_redirect
When user taps the link it will open a webview, which will then redirect to the correct appstore url depending on the device
In several applications I have downloaded and installed from the Android Market I have found that there is a feature, this feature allows you to share information created by the application to other applications and services.
For example, I can use an application called Instant Heart Rate (IHR) that measures my heart rate, and if I click on the "Share" button I can send the image produced by IHR to Facebook, mail, and some other applications as well. This list of applications seems to fill automatically when I install more applications to my mobilephone.
What I want to know is, what is this feature called? I want to add this to my applications, both the sending and the receiving of information (images and texts mostly).
Thank you in advance for response.
What I want to know is, what is this feature called?
An ACTION_SEND Intent. Here's an old blog post of mine describing its use.