How to get data from device uuid and send it as sms in ionic framework


Im developing a mobile app for a client and the main feature of the app is to fetch data from a device and send it via sms but im using cordova device plugin to get device uuid but dont know how to send it as sms, pls help. Thanks in advance


you might use the socialsharing plugin:

There are examples to open sms-composer.


Please im still newbie to ionic, this is my HTML:

    <div class="card">
        <div class="item item-divider">
            Your device information!
        <div class="item item-text-wrap">
            <ul class="list">
                <li class="item">
                    Manufacturer : {{manufacturer}}
                <li class="item">
                    Model : {{model}}
                <li class="item">
                    Platform : {{platform}}
                <li class="item">
                    UUID : {{uuid}}
        <div class="item item-divider text-right">
and my controller js :

angular.module(‘starter.controllers’, [])

.controller(‘AppCtrl’, function() {})

.controller(‘DeviceCtrl’, function($ionicPlatform, $scope, $cordovaDevice) {
$ionicPlatform.ready(function() {
$scope.$apply(function() {
// sometimes binding does not work! :confused:
if(window.StatusBar) {
// org.apache.cordova.statusbar required
// getting device infor from $cordovaDevice
var device = $cordovaDevice.getDevice();

        $scope.manufacturer = device.manufacturer;
        $scope.model = device.model;
        $scope.platform = device.platform;
        $scope.uuid = device.uuid;



with this above code i can get the device uuid but the problem now is how to send uuid info and send it as sms