Sha256: ed0b0c6d0eb7ecd286f7aa1d039f4b292076ac990ce42880f8bb79394379e2d8

Contents?: true

Size: 573 Bytes

Versions: 12

Compression:

Stored size: 573 Bytes

Contents

function isOnDevice(){
    return navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/);
}

function NativeAccess() {
    this.base_access = isOnDevice() ? cordova : new MockedCordova();
}
function MockedCordova()
{
}

NativeAccess.prototype.send_sms = function (receivers, message_content, success_callback, error_callback, context) {
    this.base_access.exec(function (result) {
        success_callback.call(context, result);
    }, function (err) {
        error_callback.call(context);
    }, "MoodeSMS", "send_sms", [receivers, message_content]);
};



Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
web-development-kit-0.0.2 lib/wdk/www_rb/templates/src/lib/js/infrastructure/native.js
jt-mobile-kit-1.2.0 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.1.8 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.1.7 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.1.6 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.1.5 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.1.2 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.1.1 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.0.3 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.0.2 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.0.1 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js
jt-mobile-kit-1.0.0 lib/jt-mobile-kit/www_rb/templates/lib/js/infrastructure/native.js