SMSLib allows you to define groups of recipients, all grouped under a common name and use that name as the recipient of a message. SMSLib will expand the message and will send it to all recipients of the group.
In order to use groups, you have to:
In order to define a group, you use the
Service.createGroup() method, i.e.
This command will create and register the group "MyParents". However, this is an empty group and you must assign destinations. You will use the
Now you have a group with contains two numbers. If you try to send a message via SMSLib with a recipient of "MyParents", SMSLib will actually send two messages to both of the above mentioned group numbers.
SMSLib currently provides a couple of basic group management methods, all located under the main Service class. Have a look at the
removeFromGroup() methods for further information.