I read all the answers but I couldn't find the right answer. All I need Is to generate five notifications when the special dates (which is stored in my Database) come.
I won't paste my code here because it is a lot and it's doesn't work, but this is the tutorial I used. http://blog.blundellapps.co.uk/notification-for-a-user-chosen-time/#comment-17214. The problem is that in this tutorial is shown how to generate only one notification and after the phone is rebooted the notifications don't come.
I will be very thankful if someone helps me :)
Related
I'm new to Android development and currently trying to build an app where users can write messages to each other. However, I can't find anything on how to implement background synchronization so that notifications are displayed even when the app is closed. I have already read about services as they sounded promising but apparently they are not meant for this kind of tasks.
Online I only found examples with Google's Firebase, but I want to use my own servers.
I thought about it like this:
The client app connects to the server every n seconds and updates its message database. If a message is added that is marked as unread, a notification is triggered.
I don't know if I'm just googling the wrong things or have another thinking error but I can't find anything about it except some firebase examples.
Basically what I would like to do is have two phone in close proximity press a transfer button which will notify a server about both the devices latitude, longitude and unique ID. From here I would like the server to compare the latitude and longitude of both devices to check there within a close proximity of each other. If they are within the accepted proximity range the server will swap the ID's of each device so that they can then retrieve information about each other from a database.
I have been stuck for a while and seen a few options but am unsure about there difficulty of implementation and there capability of performing the required task.
I am using using Android and Firebase and have this mostly done except for the server data analysis as mentioned above. The first idea was to try Firebase Functions as it is simple to integrate with the Firebase database but I have had a hard time finding examples in Typecast to perform the functions I want. The other option I see is to use node js which I know next to nothing about and don't want to invest an unnecessary amount of time into just for it to fail.
I have searched a good amount and haven't managed to find any solutions to fit this criteria so if this question has already been asked and answered please link me to the page.
I know this has already been done by Bump but theirs literally no information available about how there back end worked.
If any of you guys can recommend any solutions to resolve this issue it would be greatly appreciated. If I forgot to mention something or you need more information let know.
Firebase cloud functions + Firebase Database is a good fit to your problem statement.
When the two devices initiate a session, you can create a node(session) on Firebase realtime DB and then have a cloud function listen to changes in a node where the sessions would be created. The Firebase cloud function could then compute the logic about the proximity and swap id's.
Where is that you are stuck?
Been doing basic Android development for awhile now. Ready to implement some ideas previously I was to unsure to touch on.
If this question has already been asked please feel free to direct me there as I can not find a thread.
Lets say based on user interaction some data is collected and entered to either a text or XML file. How can I enable this user to send this data thats been collected to another Android user using the same app? Are there any APIs out there capable of transferring data between users?
In a simple example, Facebook Messaging. One message is created by a user and sent to another user. How can I get on the right path to this?
Thank you!
I wanted to ask a question you have to see if I can help.
I've started working on a (Android) application that should display a message on the android device. This message should be Push notification type, as would be when we get a whatsapp, with the only difference that this message does not come out, but will be a sort of alarm, since the user will mark what time to leave this notice.
And want to know what kind of message should work, and if it's with Push notifications, if they know of any conditions or any manual tutorial, because I've seen so far the only thing that has made me lose more.
Thank you.
I think you don't need Push Notification but AlarmManger and NotificationManager samples.
http://androidideasblog.blogspot.co.uk/2011/07/alarmmanager-and-notificationmanager.html
Good afternoon.
I'm facing a problem that I've researched, but didn't find a solution.
I'm using Parse.com Push in my Android app. When a push is sent, I receive the same message many times. It's duplicated in Data Browser too.
At first, I'd thought that it was my fault. But I think that an older installation must not affect a new one.
Can you help me, please?
Thank you.
The solution given here by Mukul should help.