Developer Docs - Mobile Docs - Following Icon
M v1.0
Inherits from Xamarin.Forms.Label
Wouldn't it be nice if your mobile users could follow a content channel item and then later view a list of all their followed items? This view displays one of two icons, depending on the current state. That initial state is determined by the IsFollowed property. When the user taps on the icon, the state is toggled and an API call is made to the server to update the followed state of the entity.
This of course assumes that the user is currently logged in. If they are not logged in, then no action will be taken. You can show a message to them using NotLoggedInText to encourage logging in.
Properties
Security Considerations
This control uses two API endpoints on your Rock instance. One to start following an entity and one to stop following. By default, the security on these endpoints only allows Staff and Staff-Like or above roles access. If you want to allow others to be able to follow and unfollow things then you will need to adjust the security on these two endpoints.
You can make these changes under Rock > Admin Tools > Security > REST Controllers > Followings. The two endpoints you will need to grant access to are:
To allow all users to be able to follow and unfollow things you will need to add the All Authenticated Users role to the Edit permission for both of those endpoints.
Example
The example below demonstrates how to display a group's name and a following icon to let the user follow that group. We are using the default icons. The first screenshot shows the not followed state and the second screenshot shows the followed state.
{% assign group = 41 | GroupById %}