How to implement notification service in JavaME - CLDC application,for both series 40 and series 60 phones?
could you be a bit more clear about notification service? If you, meant something like doing something when some event like incoming SMS etc. You can take a look at push registry. however, some phones might expect the builds to be signed.
Notification service will be like, if any message/event occurs the notification icon will be changed,clicking it will open the application with the recent updates.
Just like notification service available on desktop.
As far as I know, CLDC or Java ME does not provide you the facilities to do what you are expecting to do.
Related
I am building a messaging app and curious how stream and sendbird handle notifications.
stream and sendbird have caps (x% of MAU) on concurrent connections. A client needs a connection to a server to receive a message but is that the case with notifications? Because if that is the case, all clients need connections all the time and the concurrent connections will be around 100% of MAU which is very expensive.
Thanks,
DK
From Sendbird's perspective (I am an employee of Sendbird), notifications are typically sent only to offline users meaning that an active connection would not be necessary. Depending on your implementation, and what devices are utilized, notifications are sent via APNs for Apple, FCM for Android and HMS for Huawei
https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#1-push-notifications
Push notifications support both single and multi-device users and they are delivered only when a user is fully offline from all devices even when they use only one device. In other words, if a user is online on one or more devices, notifications aren't delivered and thus not displayed on any devices.
Additional multi-device support for push notifications is also provided. If selected from your dashboard, for multi-device users, notifications are delivered to all online and offline devices. However, through iOS, notifications are displayed only on offline devices.
https://sendbird.com/docs/chat/v3/android/guides/push-notifications#1-push-notifications
Push notifications support both single and multi-device users and they are delivered only when a user is fully offline from all devices even when they use only one device. In other words, if a user is online on one or more devices, notifications aren't delivered and thus not displayed on any devices.
Sendbird provides two options for push notifications. Choose an appropriate option upon consideration of how much support for multi-device push notifications your client app requires. Compared to this general push notification option, with Multi-Device support, push notifications are delivered to all offline devices even when a user is online on one or more devices. Refer to Understanding the differences in the Multi-Device Support page to understand the differences between two options in detail.
Feel free to head on over to the Sendbird Community if you have additional questions!
I am a developer and I have a Bluetooth Lamp that has RGB and Day/Warm Light that has a third party App to control it.
My goal is to do some automation with my Lamp.
Is there a way to read what this app is sending to my Lamp is order to simulate its functionality? The thing is this App is not possible to integrate with my Google assistant so I am trying to find a way to do it my self by making my own mobile application to control my Lamp.
Or maybe my question should be something like: is there a generic App that can control generic Bluetooth Lamps?
Any information is greatly appreciated.
You could either hack the hardware itself, or you could simply snoop on the communications to hack in to the lamp controls.
Otherwise, I would check out integration platforms like IFTTT, which allows some customization of control with proprietary systems.
I want my app to be able to receive notification from the server while it is running in the background. I don't like pooling, that will drain user's battery since I need almost realtime response, does Series 40 support that?
To answer the question if you can intercept SMS on an S40 phone then I'd say yes. You can use push registry. See this link for the j2me sample. This is only half of the problem as this is the receiving end. You need to create a server that "pushes" a message to a certain mobile number on it's push registry port. You can use an SMS gateway maybe to push messages?
I'm writing an App for a specific phone that support J2ME. It will Run in background as a service. I need the ability to pop to the foreground from service based on an event and redirect any incoming calls to voice mail.
May as well forget it. No way to achieve anything like this with J2ME.
Is it possible for a mobile browser to send an SMS using the device's built-in capabilities?
By that I mean, NOT using some online SMS services provider but actually making the mobile device send the SMS (same you would do using J2ME).
There are lots of different mobile browsers out there, so I doubt that this is standardised. Safari/iPhone supports SMS URIs, which strikes me as a sensible approach to the problem and one that might be more widely supported than just the iPhone.
Based on the link (above) I found, and a comment from Zamel, I suspect this would work:
SMS
Although with a real phone number, and possibly escaping the + sign as %2B.
Some versions of the Opera Mini browser provide a javascript interface for authoring SMS messages to be sent from the user's phone.
Also, some versions of Nokia's Symbian browser include a javascript interface with similar functionality.
There might be others, but these are the only two I've found documentation for so far.
I think a GSM modem is capable of acting as a SMS Gateway but you have to have the software installed on the modem to do this. You might also look into the Carrier Gateway Emails to SMS as another option. Example is AT&T number#txt.att.net
There are a couple of free services popping up these days like ZeepMobile that you might also want to look into.
What exactly are you trying to accomplish?
No as a mobile browser is specifically built to render markup (html) documents. Therefore, if you wanted to send SMS via a mobile browser it would call a web server page and send from the server NOT the mobile browser.
Mobile OS and their applications have quite a lot of limitations. The closest you will see is the ability to hyperlink a phone # in a mobile browser to send a message but it will be handled via their SMS app not the browser.
Its not possible . You can call device functionality from browser . That is the way to go about it . Webkit lets you do it
Android and blackberry support
"mailto:" and "tel:".
Android supports "sms:" (and maybe iPhone, I don't have one :))
good luck and please post your result.
It's a good thing that is not possible. It would be quite a security risk IMHO. I imagine spammers would be all over it.