I want to implement push notification in j2me application.
In this the want to keep notification when i get the certain value from the web service.
I had never done this functionality.Can anyone please help me how to get the notification message at particular time interval.
Java ME phones don't have a regular platform for push notifications. At least not like Apple does in iOS. What exactly are you trying to do? Do you need your notifications to arrive when your app is not running? Because that's impossible in most phones supporting Java ME...
You can use Alert For that as shown in this Example. If you need Alert after a particular time interval then you have to create Threads for that which will run continuously. One thing I want to mention here is that this is possible only when your application is running.
Related
I want to create a social-media website project for my peronsal portfolio. But, I am really confused about how to develop a notification system.
If user-A likes a post of user-B, user-B should be instantly notified. Once he opens it, the notification will be read. Sometimes, even multiple users need to get the same notification. How is this achieved? Not talking about some 3rd-party tool but how the architecture works and if there iss any way to efficiently implement this is Node.js.
I do not want user-B to keep hitting any API for checking. I want the data to come instantly as it does in Facebook, or even in Stack Overflow. Any solution?
I am using MEAN stack.
I need a presence system for my application. I need to display if they're "online" or "offline" based on whether they're able to communicate with the server or not. Firebase seems to have had a solution to this, but the Firebase realtime database costs money to use, which we're not interested in since it's just a school project we're finishing up. Are there any other solutions for Node.js and Android for a system like this?
You could use websockets and socket.io for this.
It is simple to send a notification to all clients when one of them gets disconnected.
If the "online" state is not time critical, you could just ping your clients in a given interval.
Either using the systems ping command or a npm module which provides a wrapper for this.
Is it possible to trigger push notifications (on iOS and/or Android) from a web application while offline?
As I understand it, even with a Service Worker background process, push notifications are always triggered via a server - which seems to preclude reliable offline reminders or anything like that.
There is Notifications which works offline, but you cannot call it from "background" (e.g. when your web page is closed).
"Background task" (or similar feature) is not available yet on the web, and I'm not sure it's a good idea to bring that power to the web. The closest thing you can do that sounds like "background" is MediaSession that allows you to play music and handle media controls on your hardware devices.
I'm struggling in finding a working solution and I need aid.
I am working on a small IoT project where I want to abuse NFC tags.
I've succeeded in reading/writing in the open app but I wish to read while the app is closed.
More or less I just want to send a small UDP message when reading the appropriate NFC tag, which turns out is a bit more difficult doing in a background task.
The main headache is that I can't find a task trigger that runs upon NFC chatter. I've tried SmartCardsTrigger and ProximitySensorTrigger from the following sources:
https://msdn.microsoft.com/en-us/windows/uwp/devices-sensors/host-card-emulation
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/ProximitySensor
The ProximitySensorTrigger seems like it's almost triggering at random, and kinda triggers less when I push the NFC tag against the phone. Maybe I'm doing something wrong.
The SmartCardsTrigger doesn't trigger at all. I guess the EmulatorNearFieldEntry trigger type is what I want but for some reason it's unsupported (?).
Anyhow, I am using a Lumia 920 running windows 10 mobile. To my knowledge it does not support smartcards but I just hoped it could use the same trigger for NFC tags.
Reading the responses on a similar question, Akash Chowdary suggested that it may be possible writing a custom trigger. If you know any tips that may point me in the right direction then please do tell them. I got the competence in researching but it's a big sea, and it would really help knowing where to start ^^.
I'm quite the noob when it comes to background tasks, and I am very confused of why after registering a SmartCardTrigger task I have no tasks running.
If I do for example a TimezoneChange trigger or a ProximitySensor trigger, the task is shown as it should. Maybe because my Lumia doesn't support the SmartCardTrigger? Would've guessed it to thrown an error if that's the case but what do I know.
Tl;dr: I want to read NFC tags in a background task, how do I do that on a Lumia 920 inside a basic UWP project?
I'm developing an ToDo app, and I'm planning to use UILocalNotification. I have integrated CoreData with iCloud support.
I have searched a lot on Google how to share the notifications between the devices, but I can't find anything.
So i hope some of you people out there can help a new Swift developere here, so my question is:
1: Can i share notifications between devices without using a server to send push notifications?
2: How many NSLocalnotification can i have on a device?
//Kim
If you are using Core Data with iCloud to keep the data in sync between devices you can somewhat achieve what your after. What you would need to do is detect when new changes are imported from iCloud and refresh the notifications at that point. I have used that approach successfully before but it does come with a few caveats. In particular:
- Without storing additional information the same notification will be shown on multiple devices.
- The synchronising of the notifications is reliant on the iCloud data being updated. This means that without a means to refresh the iCloud data in the background other devices will not be in sync. It may be possible to work around this using an extension or background services but I'm not too familiar with them.