share function in Blackberry - blackberry

In android, the share function is using MIME type.
Intent sharingIntent = new Intent(
android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(Intent.EXTRA_TEXT,
Config_ConstantVariable.sharelink + newsid);
startActivity(Intent.createChooser(sharingIntent,
"Share via"));
How about in Blackberry RIM?

You could try using Send Menu API in BlackBerry Java SDK 7.0 which provides similar functionality but although not feature rich .The official documentation says the following about the Send Menu API.
You can use the Send Menu API to add a Send menu item to a menu in your app. The Send menu item allows you to send content from your app to a recipient by using another application on the BlackBerry device, such as the Messages application or BlackBerry Messenger. The content to send is encapsulated in a JSONObject object that is passed from your app to the application that sends the content from the device.
When a BlackBerry device user clicks the Send menu item, a submenu is displayed with a list of applications that can be used to send the content. When the user clicks one of these applications, the selected application starts with certain fields populated automatically with the content to send. The user can complete the remaining fields and send the content.

Unfortunately there are no such API. You could use Invocation API to send message over sms, email. But there are no public API to share content with third part app like FB or Twitter. You could do it yourself by using FB SDK or implementing Twitter API yourself.

Related

Sending email with attachments through iOS Outlook

My application (a DMS client) has strong ties to Microsoft technology, so my customers are on average much more likely to run Outlook for iOS than the default iOS Mail client.
However, Outlook does not respond to the MFMailComposeViewController, so that basically leaves two approaches on the table for sending email from the app:
Use the msoutlook:// URL scheme to open Outlook. This supports pre-populating recipients, subject, and a HTML styled body text, apparently without a maximum length. However, it does not seem to support attachments.
Use the UIActivityViewController (i.e. the "sharing" interface), which does allow for attachments (hurray!), but I don't know if it's possible to pre-populate any of the fields other than the content...and the sharing dialog itself is really unpleasant UI, interrupting the user flow with a complex choice.
Word (for iOS) presents the user with the following flow that directly opens a document as an attachment to a new email in Outlook. Assuming they don't use any private APIs, how are they doing that?

How to send user input to designated e-mail?

I am developing an iOS app targeting iOS 9 and above using Swift 3 and xCode 8.
I have a "Contact ViewController" which contains multiple forms where user enters its data to submit. Collected data also contains users' e-mail address. I am validating all the information that entered by the user correctly.
So, what I would like to do is my "send" button to send the user's all data to an e-mail address.
Is this possible without using Mail App or its interface? Do I need additional framework for such functionality?
I appreciate your time and sharing your thoughts.
This is not possible secretly. You can't send an email from the users device via the Apple Mail app because the system will not allow that. You can prepare an email with all the data that opens and let the user send it to you by tapping "Send" in the NavigationBar. So yes, you would need another framework to do that.
But I would not use emails to do that. Just use a server you send the data to or a service like Firebase.
If you really have to send E-mails, and just pushing the data to a backend API is not enough:
This is not possible using built-in functionality, but you could leverage an external mail delivery service like Mailgun to send your mails. (From a security standpoint, this should be handled by a server and not by the app itself however.)

Xamarin forms messaging plugin

I've just tested the "new" Xamarin forms cross platform plugin. It works as it should and you get navigation to the phones messaging app when you are about to send a message. As I could read it is restricted by the OS to not let you send sms from within the app directly, is this the same if you go all native to the NS api on iOS? A solution if you don't want to have the sms app enabled is to have a backend/api, but then it also requires more than just the app and a separate sms gateway. So my question is to know if there is a custom workaround to just send a sms if the user allowed it, directly from the app?
In Android, you can use SmsManager class to send an Sms. There is an example in Xamarin's Documentation on how to do it.You need to add SEND_SMS permission. Here is the code snippet from the site
SmsManager.Default.SendTextMessage ("1234567890", null,"Hello from Xamarin.Android", null, null);
iOS does not allow us to Send an sms directly using an API alone. This is a restriction imposed by Apple. Recommended approach is use the default application installed in the iPhone. Best approach we can take to send message from within the App is to use the MFMessageComposeViewController class. With this we can present a UI (provided by iOS) within the App in which user can populate "Body" and "Recipient" fields and send Sms.
This blog post has an example of how to use MFMessageComposeViewController in Xamarin
Starting from iOS 4 you can use MFMessageComposeViewController which shows interface for sending sms messages inside your app. You can use PhoneService class from Xamarin-Forms-Labs project or Xamarin.Plugins pcl library.
These projects also provide the same functionality for sending sms messages in Android.

Send some data to contact from app (Objective-C, Swift)

Is there any way I can send some data to contact from contacts app? for example some string or integer? E.g. I have an app, when user open it the app shows all contacts from Contacts app. and when he tap one of the contact the app must send data to the persons phone. Must I do it with web service or there is any way to do it without web service?
P.S. sorry for my english!
There is no way to do this using built-in iOS libraries without invoking a UI. You can send an SMS message using the MFMessageComposeViewController class. That displays a UI to the user. If I remember correctly you can prepopulate the view with the content you want to send, but the user can edit it.
Likewise there is the MFMailComposeViewController for sending email, with or without attachments.
If you want to send data to another user without displaying a UI to the user you will need to either use a webservice or come up with your own system (involving a server you manage, a TCP socket connection between copies of your app running on both devices, or some other custom development)

how to detect custom urls of a third party application from bbm and email link in blackberry java

Requirement: when the user presses enter on e.g. bbApp001://screen1?param1=1234567890?param2=12345678
where bbApp001 is one of the apps in the device; screen1 is one of the screens that is created in the app; and param1 is the first param that is sent along with the link and same with the param 2.
In a BBM message or in the email the corresponding application will be invoked with that as context.
how to detect custom urls(bbApp001://screen1) of a third party application from an email or bbm link in blackberry
if above can be done then how to send content with links to email and bbm so that when a user click the corresponding app is launched
Note: for the first - I have tried to launch from another application using ApplicationManager.getApplicationManager().launch("bbApp001?screen1&param1") but my requirement is to trigger/invoke the app once the user click on email or bbm message.
It's explained here. Please try and let us know.
http://supportforums.blackberry.com/t5/Java-Development/Launching-Blackberry-Application-via-a-Custom-URL-Scheme/td-p/1395479

Resources