0

Hiii、私は parse.com から手動で試したときに正常に動作する Android のプッシュ通知にパース プッシュを使用していますが、WordPress を使用して投稿から通知を自動的に送信すると問題が発生します。通知を受け取ることができず、parse.com でダッシュボードを確認すると、表示されたターゲットはチャネルです。ターゲットを「チャネル」ではなく「全員」に変更する方法を知りたいです。

コード :

ParseAnalytics.trackAppOpened(getIntent());
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if(!prefs.getBoolean("firstTime", false)) {
PushService.subscribe(getBaseContext(), "", Home.class);
showToast("You are subscribed for the push Notification You can unsubscribe it in Settings");
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("firstTime", true);
editor.commit();
}

// inform the Parse Cloud that it is ready for notifications
PushService.setDefaultPushCallback(this, Home.class);


ParseInstallation.getCurrentInstallation().saveInBackground();
4

1 に答える 1