Without a clear scenario, it is sometimes challenging to envision how you might use a new technology inside your app. We’ve come up with a few ideas to help you think about how to improve your app with messaging. Here are 3 common scenarios that you may want to explore for your next app:
Use Chat to Ask for Help
Add one-to-one or one-to-many chat so users can easily ask for help or request assistance inside your app. Think about how chat can be used to improve the user experience. Are users getting stuck with a given feature? Is there a way to ask for more details before completing a purchase? Is there a way to ask an expert on the team for assistance? All of these and more are common scenarios where the simple act of asking for help and getting a response from the right person can make all the difference. Be sure to pay attention to context. These scenarios often offer possibilities to streamline the chat experience because the developer knows something about how or where chat is used inside the app. Take a look at our previous blog post about adding this capability to your app. You may also want to review steps and API details for adding chat to your app for iOS or Android.
Announcements are a great way to send a series of messages or updates to a group of people. Announcements are a classic example of one-to-many messaging. Examples include “Last chance to buy tickets for Friday’s show!”, “Please remember the downtown office will be closed on Monday” and “The staffing schedule for the Thursday event has been updated”. Remember that these announcements don’t just need to be text strings…they can also be HTML, JSON or even images. By leveraging Magnet Message to create a public forum, you can easily send content to users of your app. While some scenarios require you to send announcements to all users of your app, be aware that this can sometimes lead to problems if your app users feel they are getting spammed. As an alternative, you can organize announcements according to a topic or theme. With Magnet Message, we give you the ability to create channels and send messages to those specific channels. (For details, see Magnet Message concepts overview.) This is a specific usage of publish/subscribe functionality that is built into Magnet Message. It lets senders create announcements and “publish” those to specific channels. When users “subscribe” to channels of interest, they automatically receive announcements sent to that channel. For more about creating announcement-style functionality in your app, see details about creating a public forum for iOS or Android. To review a sample app created to send announcements, see Soapbox, which includes full access to source code.
Share an Image or Content
We often get questions from developers about scenarios that go beyond sending simple text messages. One of the more common requests is how to use Magnet Message to share images or rich messages between users or across a group. An image can be used in combination with text chat to include a profile photo or gif with a message. An image can also be the message itself, as is the case with photo sharing or photo-based chat. Sending images can be relevant to user-to-user chat scenarios, public forums and private discussion groups. While smaller images can be sent as binary payloads across the messaging transport, developers should consider size and performance implications and may want to use a different approach. In a previous Magnet blog post, we explained how to use a URL in the message payload to transfer any kind of file (including an image!) using our Magnet Message SDK for iOS and Amazon AWS S3. The post includes links to sample code and explains that the basic approach can also be extended to other types of storage backends like Box or Dropbox as well.
We hope these examples give you new ways to think about leveraging Magnet Message in your app. Please contact us in our Forum if you have questions or need assistance.