feat(uptime): add iOS support

This commit is contained in:
Silviu Bogdan Stroe 2018-04-07 11:49:53 +03:00
parent 548860b1ff
commit e6f6158b43

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import {Injectable} from '@angular/core';
import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
/**
* @name Uptime
@ -15,7 +15,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
* ...
*
* this.uptime.getUptime()
* .then((uptime: any) => console.log(uptime))
* .then((uptime: string) => console.log(uptime))
* .catch((error: any) => console.log(error));
*
* ```
@ -27,7 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/s1lviu/cordova-plugin-uptime',
install: '',
installVariables: [],
platforms: ['Android']
platforms: ['Android', 'iOS']
})
@Injectable()
export class Uptime extends IonicNativePlugin {