GetuiLaboratory / react-native-getui

个推官方提供的推送SDK React Native 插件(支持 Android & iOS)

Home Page:http://docs.getui.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安卓如何关闭推送

ciuji opened this issue · comments

commented

使用getuimodule里面的stop方法吗?可是尝试过各种方法,status显示的状态仍然是1,仍在运行。
所以应该如何实现关闭推送呢。谢谢。

static destroy() {
GetuiModule.destroy();
}

commented

@monkeydbobo destory()之后使用status方法,返回的仍然是1,这时候推送功能还有吗?谢谢。

你调用了Getui.destroy的方法,client就是offline了,就收不到推送了,你再去调用resume方法,设备就在线了,可以收到推送了。你可以自己试一下