i have two login pages one for doctor and one for admin. here admin can add patients. if admin added no.of new patients doctor wants to get new notification after he logged in. suppose admin added 10 patients then doctor wants to see those no.of newly added patients in message box . like doctors has to understand by seeing that 10 number in message symbol. here am using socket.io , angularjs and nodejs.
First of all you need to make a connection using socket.io whenever a admin or doctor logs in just define the role(admin or doctor) while making the connection. Now whenever an Admin creates a new patient you need to emit an event to all the doctors that need to be notified. On the doctor's side keep listening to the new patient addition event using socket.io's 'on' method and display the notification thereafter. Also keep saving the notifications in the DB to show the count.
Related
I want to process shared box emails once in a day by logic app. I tried using Get emails(v3) and when I am trying to login into shared box with email then it connects to my email id as shared mail box has email id but user account is linked / given permissions by the user how have access to it.
I am able to view my emails by Get emails (V3) action. how can I view Inbox by Get emails V3 action on shared email box.
I do not want to process email immediately like in "when a new email arrives in a shared mailbox"
AFAIK, Yes you can add an recurrence step before the step of when a new email arrives in a shared mailbox as below:
Fisrtly, add recurrence trigger as below for 1 day as below:
then click on get mails action as below:
or you can use the below action:
By using this we can get the unread messages on a given particular day.
I'm trying to implement notification inbox similar to stack overflow inbox where I can see related notification.
For now, I just want user to be notified whenever new comment is posted in the post (show number of notification when user logs in and whenever user opens that inbox it should go away).
I'm not sure how this can be done using firebase and how I should structure the data.
I'm thinking of having a comment collection inside a Post collection and use the onSnapshot to listen to changes in Post collection but how would i actually implement the notification part (whether comment is read or not)?
I would recommend to have a collection just for notifications like notifications/{userUid}/notifications/{notificationID} like here:
We use that structure for all of our apps that have such a feature. The notification itself is send using FCM but we store the data of it in such a separate collection. It also has the value isRead where we store just a boolean or a timestamp when the notification is read from the user. Each user has his own notifications collection and can only see those and change only the isRead value by the security rules.
With a limit query we show him only the last 25 to 50 messages.
If you don't know how to trigger the sending of the notifications: You will need to use the Firebase Cloud Functions and setup a trigger when a post/comment is created and send an FCM message and a notification in your users notifications collection as shown above.
i currently stuck on building an account check like whatsapp.
When a user clicks on his smartphone on his/her contacts, it should display, which user has an existing account.
So in theory it should post all user contacts to server, server checks if there is an account with this email adresse and sends the "updated list" back to the client.
Sounds easy, but how do i do something like that :)
Getting the contacts is working, also posting contacts to server.
I had my backend on backand.com and building an app with Ionic/Angular.
This should be very simple.
The core functionality here is based on Backand built in 'users' object, it holds all users you've added to your app, a simple GET to this object will return all your users details including emails.
Now you can add a serverside js action that
gets the contacts details from the client-side app in the request body (as JSON)
does an $http call to the users object ro fetch exiting users.
loops the contacts and search for them in the users array
so this is my first question here in stackoverflow, i always find the answer by looking here... so.
I have this issue, I have a Model named Company, which can have many users, which would be the "best approach" to create and activate a user account within this newly created Company.
Here is the process i am following:
Platform Admin creates a company, the company serves as a grouping account in which i will have a number of users, but i need to send an Email after company creation to the Company admin in order to have him create his account so that he can manage the other company users, this email needs to have a hash so that it has some kind of reference to the company (avoiding the company selection in the form).
Im using Rails 4.2.6 and Angular 1.5
so im stuck after the company creation form.
In an email send the angular route url which got the company hash that just created. When admin user clicks on that link your angular route gets called and then before it render the view , i mean use resolve in angularjs route, get the list of all the user and company that just got created where admin user can select user that he or she want to activate.
I am trying to get the customer's address, name and any information that they enter on the paypal side so I can create a customer account with order history. I am currently using web payments standard for the simplicity.
How do I get that information from paypal after the user is sent back to my confirmation page?
Can I get this back from the IPN?
Once they have completed the transaction it will show up in your HISTORY section. Next to the specific transaction click on "Details". This will provide you with all the information that was requested of them upon check out.
If you're using PayPal buttons make sure that the appropriate check boxes are checked when created the button to ask for the buyers address, otherwise it may not ask at all.