带一个信号的Ionic V1推送通知不起作用

时间:2018-09-23 16:48:27

标签: android ionic-framework push-notification onesignal ionic-v1

我试图将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);

0 个答案:

没有答案