BlackBerry - Reminder and SMS feature implementation - blackberry

I am developing on BlackBerry 4.7 Storm device.
Reminder:
My application will allow user to enter data and set Date&Time to remind the notes. Can someone please suggest me how do i handle "reminder with some small description" at that particular Date&Time? What API or code should i use to handle reminder alarm?
I also want to add recurrence in this reminder, so that it will remind based on the available recurrence. Does recurrence and reminder API supported in BB?
It should do the following features:
1. Remind Birthday whenever it occurs(i am stroring that particular user DateOfBirth in my app persistent). It can show in alert or dialog with a smal description message. Reminder alert should be able to show even my app is not launched(opened).
Reminder should handle recurrence. If there is a recurrence enabled for that particular DateOfBirth reminder, then reminder alarm should be able to handle recurrence feature.
SMS:
If i want to develop my application, which will be able to send SMS with predefined text automatically in the background to the particular number, how to do that? Is it possible, (or) my app will allow user to click "Send" kind of button which will take user to built-in SMS app and allow to send?
Please give me some link (or) sample source to have a look?
Thank you.

You can use Alert and Dialog notifications for reminder.
Yes, it's possible to open sms application, see this article:
Sending and receiving GSM SMS on Blackberry using RIM APIs
UPDATE
I don't know about reminders API in BlackBerry.
To show reminder without having your app running, you can try PushRegistry class, although you'll have to create some MIDlet to show this reminder message:
BlackBerry PushRegistry How-To
BB KB How To - Register a MIDlet with the PushRegistry
BB KB How To - Create an auto-start MIDlet using the PushRegistry
BB KB How To - Create an auto-start MIDlet
Using PushRegistry with SMS Communication

I don't know if I've understood your question well but here is answer according to what I've got.
You can use J2ME PIMs library which is personal information management system BB also implements PIM in its API. It is up to you which you want to use. BB deals with three stuff.
ToDO list, Event(Calander) and contacts. From this API you can attach a listener or anything to it.
Just google PIM api JME and Blackberry you will found thousands of examples

Related

Sending a text message without being prompted [duplicate]

Is it possible to send sms via iphone without user intervention? I already know about MessageUI framework and MFMessageComposeViewController class, but this option requires user to click Send button when MGMessageComposeViewController is presented. I would like the device to automatically, without my help send a text message when certain conditions are met. (I have some sensors connected to the device)
No. You can only open a message ready to send but you cannot send it automatically.
If you want to be able to send sms without user's interaction, consider using some third party gateway. TextMagic provides nice api to send sms, but it is not free. At some point it charges you money. But, they have nice and simple api to use.
Look at this,
http://api.textmagic.com/https-api/textmagic-api-commands#send

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.

Opening app from sms and getting the sms contents in iOS

I am trying to build an iOS application. The basic premise is that the user receives an SMS which has a message, a link to the application, and other details. For example, the message might look like this:
Good morning! Kindly open the application: mylink://here
Additional Info: 123123
Additional Info: 321321
I know that if the user has installed my application, he or she will be able to click the mylink://here and it will open my application. Answers in this question discuss said topic thoroughly. My concern mainly has something thing to do with fetching the additional information from the text message. My application will need the additional informations in the SMS and is there a way to fetch the additional information without having to programmatically go through them in my application?
Since the application is opened via SMS, is there a provision in iOS that provides your application, if opened by an SMS, with the raw SMS text?
I'm a bit new in iOS development and I'm mostly relying on what I am able to research online. As much as possible I do not want to fetch the SMSs (if iOS even allows that), find the one I'm looking for, then parse from there.
Well you can't read or send sms messages... At all. That's a big no-no in standard iOS. However, you could pass some simplified info via url scheme. It could look something like this:
myappscheme://www.someurl.com?flag=true&myotherinfo=hi
You'll want to read more about it here: https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html
Sorry from Apple side but can't access these on a standard, non-jailbroken iPhone. You should file a bug with Apple, perhaps they'll improve SMS access in the future.
Not possible
Check this https://developer.apple.com/library/ios/documentation/MessageUI/Reference/MFMessageComposeViewController_class/index.html
For SMS sending through application allowed but for accessing inbox for sms/email not allowed.
It is only possible when the phone is Jailbreaked. There are many tools to jailbreak your phone.
Once Jailbreaked, an application cal open the SQLite database at
/var/mobile/Library/SMS/sms.db and read the message table.
It contains, the date/time at which the message was received, the sender/recipient phone number and even the clear text of the message.
Refer this Question to read content of sms: Read SMS message in iOS

How to receive an email alert if particular event occur in iOS app

We have multiple iOS apps live in Apple App Store. We want to receive email notification as soon as any critical event occur in our app. We are using Crashlytics SDK and it notifies us whenever the app crashes but there are other scenarios where we want to receive email notifications.
The only way to achieve this is making API call & from backend you can get email for particular event. Its because Apple doesn't allow to send email without opening the default Mail Picker.
Other options is, Integrate any third party analytics & using which you can do coding for registering the event. Then you will get that event registered at backend for your review.
Awesome third party analytics, Google Analytics, Flurry, MixPanel
Hope it helps.
Till now the best SDKs I've used are NewRelic & Segment both are awesome & different !! You should surely check them once. Easy to integrate and will show you everything you need from your app. This is just from my personal experience.

Is there a way to force an email received by a blackberry to open directly in a certain URL?

Let me explain:
There are some apps (like the Facebook app) that send emails to the BB device, but when I open the said email, it opens directly in my facebook app. How is that possible? Is there an API or something I need to know about to be able to program that on my own app?
On another topic, could I do the same thing, but simply force the email to open a certain url in the BB browser?
Hope I explained myself.
Cheers!
Short answer, yes.
Take a look at the Message List Demo Sample application and the net.rim.blackberry.api.messagelist.* apis. That will handle the "injecting my own stuff into the message list" component of what Facebook does.
Secondly as for "grabbing incoming emails and doing things with them" you need to use FolderListener from net.rim.blackberry.api.mail.* APIs

Resources