Skip to content

Instantly share code, notes, and snippets.

View rahulinaction's full-sized avatar

rahul mendonca rahulinaction

View GitHub Profile
@rahulinaction
rahulinaction / gist:f5d347ea9c74a941273e
Last active September 8, 2015 19:08
Opening link in system browser
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<title>Cordova test file</title>
</head>
<body>
@rahulinaction
rahulinaction / PhoneDialer.h
Last active August 29, 2015 14:05
PhoneDialer header file
#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
@interface PhoneDialer : CDVPlugin
- (void) dialPhone:(NSMutableArray *)arguments withDict:(NSMutableDictionary *) options;
@end
@rahulinaction
rahulinaction / PhoneDialer.js
Created September 2, 2014 05:57
A sample javascript plugin file for calling phone number
var PhoneDialer = function() {
}
PhoneDialer.prototype.dial = function(phnum) {
//alert("the phonedialer"+phnum)
cordova.exec("PhoneDialer.dialPhone", {"number" : phnum });
};
if(!window.plugins) {