Commit 928a1b05 authored by van.chen's avatar van.chen

新增点东西

parent f0d62b63
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MyApp</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<description>一个通用模板app.</description>
<author email="1005100328@qq.com">Van.Chen</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
......@@ -82,6 +82,7 @@
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^3.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<plugin name="cordova-plugin-local-notification" spec="0.9.0-beta.2" />
<engine name="android" spec="7.1.4" />
<engine name="ios" spec="4.5.5" />
</widget>
......@@ -22,6 +22,7 @@
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@ionic-native/core": "^5.0.0",
"@ionic-native/local-notifications": "^5.3.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic/angular": "^4.1.0",
......@@ -30,6 +31,7 @@
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.2",
"cordova-plugin-local-notification": "0.9.0-beta.2",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
......@@ -74,7 +76,8 @@
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {}
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-local-notification": {}
},
"platforms": [
"android",
......
......@@ -7,6 +7,7 @@ import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { LocalNotifications } from '@ionic-native/local-notifications/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
......@@ -26,7 +27,8 @@ import { TransferService } from './service/transfer.service';
ApiService,
HttpService,
AuthService,
TransferService
TransferService,
LocalNotifications
],
bootstrap: [AppComponent]
})
......
<p>
page-three works!
</p>
<ion-button mode="ios" color="primary" expand="full" class="loginBtn" (click)="show()">Detail</ion-button>
import { Component, OnInit } from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {LocalNotifications} from '@ionic-native/local-notifications/ngx';
@Component({
selector: 'app-page-three',
......@@ -7,8 +8,20 @@ import { Component, OnInit } from '@angular/core';
})
export class PageThreeComponent implements OnInit {
constructor() { }
index = 0;
ngOnInit() {}
constructor(private localNotifications: LocalNotifications) {
}
ngOnInit() {
}
show() {
this.localNotifications.schedule({
id: 1,
text: 'Single ' + this.index,
sound: null
});
this.index++;
}
}
......@@ -4,7 +4,7 @@
export const environment = {
production: false,
url: 'http://172.16.1.23:8092'
url: 'http://edcloud.witium.com.cn/api'
};
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment