aggarwalankush / aggarwalankush/ionic-push-base

Push notification after tapped is clicked not working

オープン
#10 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
162
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello All,
I’m working with push notifications in one of my Ionic 2 Application.

Just stucked when the app is not running in the foreground that means when the app is closed and push notification triggers, its showing up properly but when its tapped the application starts up but the code after push is not working :s

pushObject.on(‘notification’).subscribe((data: any) => {

console.log(‘Data returned’, data);
//if user using app and push notification comes
if (data.additionalData.foreground) {
console.log(“app is running”);
} else {
//if user NOT using app and push notification comes
//TODO: Your logic on click of push notification directly
console.log(‘Push notification clicked’, data);
}
});

I’m unable to see this ‘Push notification clicked’ log, how to check my after push code is working properly?

Any help will be highly appreciated!

Thanks.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。