Giter Club home page Giter Club logo

Comments (5)

yangwenmai avatar yangwenmai commented on June 27, 2024

你好,发生

pro-1 Unexpected command or size. commend: 0 , size: -1

错误,是由于你的p12文件跟你的应用签名可能不一致导致,比方说用dev的来推prod的。该版本无发送不了的问题。

from dbay-apns-for-java.

joyexpr avatar joyexpr commented on June 27, 2024

我也考虑了这个可能,但是我用另一个库pushy,用的也是相同的p12文件,却可以推送成功,所以非常疑惑。断点了startErrorWorker里的size = socketIs.read(res); size返回-1,无法获取失败的原因。

我会再进行尝试,如您想到其它可能,烦请告知。

from dbay-apns-for-java.

joyexpr avatar joyexpr commented on June 27, 2024

抱歉,是我的疏忽。COPY的demo中的代码,潜意识以为demo的应该会是dev模式,没想到默认是production:config.setDevEnv(false),改为dev模式后发送成功。谢谢。

from dbay-apns-for-java.

zhoudianyou avatar zhoudianyou commented on June 27, 2024

@RamosLi 最近在项目中遇到一个问题, 我有一个程序负责两个应用的推送, 环境都是正式环境但是 莫名其妙的 会收到大量 Unexpected command or size. commend: 0 , size: -1 这个错误! 很苦恼!!

from dbay-apns-for-java.

vinson-zhang avatar vinson-zhang commented on June 27, 2024

@RamosLi 最近在项目中遇到一个问题, 我有一个程序负责两个应用的推送, 环境都是正式环境但是 莫名其妙的 会收到大量 Unexpected command or size. commend: 0 , size: -1 这个错误! 很苦恼!!

解决了吗?

from dbay-apns-for-java.

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.