Today is ready to integrate Baidu Cloud push send, because according to friends, Baidu Cloud push Send as Android push back is relatively stable.
Development tools: Android Studio 1.2.1.1 system: Mac OS X 10.10.3
Immediately download the latest V4.4.1 version of the Baidu Cloud push demo, carefully follow the document step by step to finish. But when it comes to testing, it's not a callback.
Finally in the Baidu Cloud application management details, saw the "generate a quick example of the button", after the build installed, found that it can be used normally. So I began to study this quick example, and finally found only one difference: armeabi/libbdpush_v2_2.so and mips/libbdpush_v2_2.so two folders in the/app/src/main/jnilibs directory, So this is JNI. But the official document says, directly with Pushservice-4.4.0.71.jar copy to the/app/libs directory of AH?!
Immediately change the location of these two so folders, normal operation! Can be recalled to the Onbind method. Hope to be able to help people who are experiencing the same problem.
Android Project integration Baidu Cloud push, unable to callback to pushmessagereceiver the problem and solution of Onbind method