2015-11-25 06:55:09 +08:00
|
|
|
|
2015-12-02 03:33:08 +08:00
|
|
|
console.log(window.IonicNative);
|
2015-11-25 06:55:09 +08:00
|
|
|
|
2015-12-02 03:33:08 +08:00
|
|
|
if(IonicNative.Camera.installed()) {
|
|
|
|
console.log('Camera installed');
|
|
|
|
} else {
|
|
|
|
console.log('Camera not installed');
|
|
|
|
}
|
2015-11-25 06:55:09 +08:00
|
|
|
|
2015-12-02 03:33:08 +08:00
|
|
|
if(IonicNative.Geolocation.installed()) {
|
|
|
|
console.log('Geolocation installed');
|
|
|
|
IonicNative.Geolocation.getCurrentPosition().then(function(pos) {
|
|
|
|
console.log('POSITION', pos);
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
console.log('Geolocation not installed');
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
Native.Camera.takePicture().then(function(resp) {
|
|
|
|
console.log('Got picture');
|
|
|
|
}, function(err) {
|
|
|
|
console.log('ERROR');
|
|
|
|
});
|
2015-11-25 06:55:09 +08:00
|
|
|
|
2015-12-02 03:33:08 +08:00
|
|
|
if(Native.AppLinks.installed()) {
|
|
|
|
console.log('AppLinks installed');
|
|
|
|
} else {
|
|
|
|
console.log('AppLinks not installed');
|
|
|
|
}
|
|
|
|
*/
|
2015-11-25 06:55:09 +08:00
|
|
|
|
2015-12-02 03:33:08 +08:00
|
|
|
if(IonicNative.StatusBar.installed()) {
|
|
|
|
console.log('StatusBar installed');
|
|
|
|
IonicNative.StatusBar.hide().catch(function(err) {
|
|
|
|
console.error('unable to set statusbar', err);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
console.log('StatusBar not installed');
|
|
|
|
}
|