我试图将OneSignal推送通知集成到我的Ionic V1应用程序中。这是我的app.js,我已经将Oe Signal插件添加到了我的应用程序中。一旦在手机上运行它,它就不会显示我从OneSignal仪表板发送的任何通知。我在这里做什么错了?
import React, { Component } from 'react';
import { Switch, Route, BrowserRouter, withRouter } from 'react-router-dom';
import Auth from './components/Auth/Auth';
import SearchBox from './components/SearchBox/SearchBox';
import Layout from './containers/Layout/Layout';
import './App.css';
class App extends Component {
render() {
return (
<div>
<BrowserRouter>
<Switch>
<Layout>
<Route path="/auth" component={Auth} />
<Route path="/" exact component={SearchBox} />
</Layout>
</Switch>
</BrowserRouter>
</div>
);
}
}
export default withRouter(App);