I am on RoR and I would like to know if anyone can explain how I can create a system which displays a button for sending a message invitation to an other user.
If I havn't send invitation, then the button should be "Send invitation", else the button should be "Remove invitation".
I have created a messaging system that allows communication between all users of my website.I also have created an notification system which help them send notification to users.
I have a MVC application for my "send_invitation" system but not sure how to create a method which will send notification to other user. And also to ensure that when the user accepts the request, they should be allowed to exchange messages. I want a clarification on the above process.
Related
I am developing a Microsoft Teams custom tab app, and i want that if a event occurs in the server, notify to the teams client, and if the client is in other Teams tab, the client show a prompt (with sound?) to see the event or to link to my custom tab.
That is possible?
One option to do this is to include a bot as part of your app, and then the bot can send a message to the user as needed. The user will receive a normal Teams message notification toast. This would use something called Proactive Messaging, to send a message on a trigger.
I was wondering how mobile news apps send messages where if you click on the push notification, the app takes you to the specific article. I am trying to perform a similar task but have the user generate a message and send it to another user. When the user on the other end receives the message, they should be taken to another view that displays the message data.
Would I use the Firebase In-App Messaging or would I need an external server with the Firebase Admin SDK implemented?
You need to make use of userNotificationCenter(_:didReceive:withCompletionHandler:), firing the appropriate logic based on the contents of your notifications, or the action selected by the user.
See this blog post for an overview of how you can open a specific view controller from the background. As an example, this project on GitHub uses Firebase and seems to do what you're trying to do.
I'm writing a simple mini-chat with custom User model and authentication via omniauth. The chat uses web-socket faye-rails to send and display messages instantly without refreshing the page. The matter is that I'd like to add private messages - I mean, that I can choose an user and start our own dialog in a secondary chat window. I've looked for the solutions, but everything I found was about e-mailing - with inbox messages, trash cans and so on. So I wonder if there's any solution easy to implement.
The source code of my chat is here
Welcome to push technology and active web design!
When someone logs in, present them with a list of friended accounts and logged in state. For logged in friends, they can select a friend from the list and start a chat session in a new window. For logged out friends, they can send a message that's delivered the next time the recipient logs in.
You'll then have to create a friending mechanism that allows a user to request a connection to a prospective friend, be notified of pending connection requests, approve friend requests, and an unfriend feature. Hopefully that one won't be used too often.
I've worked with Faye & I like Faye but also take a quick look at the beta release of Rails 5. Action Cable will do the same thing and the framework support is better.
I'm working on an iOS project. For this project I need an authentication system. However, if it's possible I don't want to use already built two-factor authentication systems such as Plivo or Sinch. I want to implement this feature of our application.
For this purpose, I need three things:
My application should get the phone number of the user and send it to server.
Server should send a sms to the number of user and my application should be able to read this message to get authentication code sent by server.
Application should be able to remove messages of this procedure from inbox and outbox of the iPhone used by user.
Now, i'm asking that can I implement this feature? I know this is a weird question but i've searched the Internet all day and could not get a certain answer. Thus I'll appreciate if someone informs me shortly.
Yes, you can that.
Your app can't read SMS messages received through the Messages app. The user would need read the message and note the code. Then switch back to your app where they could then type in the received code.
Your app can't access or modify any SMS messages received through the Messages app. The user would need to delete the message if they wanted to.
I'm developing an app that creates a simple document with basic information created by the app. It won't contain any personal information, but it will contain data created and requested by the user. I want the user to be able to send this to themselves via email. I would also like to add the option for the user to have this file (which updates daily) to be able to send to them automatically every week/month, so they won't have to think about it. The user can set the intervals themselves.
Is this possible? The user will set up this option themselves from a menu, so it's not like they won't know it's happening. Every automatic mail will also contain information on how to turn the option back off again.
Is this possible and is it allowed by Apple?
Thanks for your reply
It is not possible from within the app. A user has to explicitly send the email through the MFMailComposeViewController.
If you want this functionality, you should build a backend for your app.
To clarify, if you want to use the users configured accounts; i.e. the account they use with Mail, then no you cannot do this automatically. The other answers rely on the fact a user enters their POP/IMAP settings, which personally I would never do.
You could use an email service as mandril or mailgun, to send emails "from your app".
Take a look at this: https://github.com/rackerlabs/objc-mailgun
There's a library called MailCore that's incredibly powerful. You can use it to send mail in the background of your app without needing to present the built in mail composer view
https://github.com/MailCore/mailcore2