Git Product home page Git Product logo

Comments (2)

pengyuantao avatar pengyuantao commented on July 30, 2024

OnePush关心的业务就是推送,不关心app日活,不过友盟推送似乎和日活相关了。

至于第一个问题,你完全可以在Activity的onCreate()中,先用OnePush.getPushPlatFormCode()方法判断当前使用的推送是不是友盟,如果是友盟,那么再调用PushAgent.getInstance(context).onAppStart();,毕竟友盟推送和日活相关的,而其他推送和它相关。

那么第二个问题,我当时在写OnePush的时候,已经考虑到是否缓存token的问题,最后决定不进行缓存,为了更好的拓展性。第二个问题,你完全可以自己写一个PushTokenManager的一个类,专门管理推送消息的token,至于你说的缓存失效重新获取的逻辑,也可以全部挪到PushTokenManager类里,所以它不属于OnePush的业务范畴。

from onepush.

pengyuantao avatar pengyuantao commented on July 30, 2024

关于PushAgent.getInstance(context).onAppStart();调用,不需要在外面的进行处理了,one-push-umeng已进行处理,请注意查看最新的更新。

from onepush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.