我有一個應用程序,我使用推送通知。我正在使用push.io提供的api。 我按照下面的鏈接進行配置: step-by-step push tutorial如何從push.io接收通知數據
代碼在模擬器上正常工作,我收到通知。我點擊通知,我的閃屏變成了場景。但是,當我使用真實的設備,然後顯示如下錯誤所收到通知和崩潰:
FATAL EXCEPTION: main java.lang.NoSuchMethodError: android.app.Notification$Builder.build at com.pushio.manager.PushIOGCMIntentService$1.onReceive(PushIOGCMIntentService.java:237) at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
這裏是接收器代碼:
@Override
public void onReceive(Context context, Intent intent) {
Log.i("calling...", "onReceive()");
this.ctx = context;
// Log.i("receiving message", "message received");
Log.i(logTag, "Received intent: " + intent.toString());
String action = intent.getAction();
Log.i("action: ", action);
.
.
.
}
能否請你檢查出這個要求,並提供我的方式來實現這一目標: http://stackoverflow.com/questions/19566197 /手柄推通知業務的有效載荷數據上通知點擊/ 19570088?noredirect = 1#19570088 – Maddy