Browse SDKs · Flutter
SDKsFlutter

Create a location message

Create a location message with the OpenIM Flutter SDK.

Copy
final message = await OpenIM.iMManager.messageManager.createLocationMessage(
  latitude: 25.033,
  longitude: 121.5654,
  description: 'Taipei 101',
);

Obtain location permission first and control the precision exposed by the product. The Future creates an object waiting to be sent.