Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49250

Push Notification Not Shown when App is OPEN - Android

$
0
0

@ebocic wrote:

Hi guys!

Wondering if some of you had a problem with this. I am using full push notifications in Ionic with the phonegap-plugin-push.

Testing on Android when my app is closed/background my notification displays flawlessly but when I am using the app and I send a notification nothing is shown :confused:

Any chances someone could know what cloud be?

The cURL instruction is this one:

curl -X POST -H "Authorization: Bearer QWERTY123QWERTY123QWERTY123QWERTY123QWERTY123QWERTY123QWERTY123QWERTY123QWERTY123" -H "Content-Type: application/json" -d '{
"tokens": ["QWERTY123QWERTY123QWERTY123QWERTY123QWERTY123"],
"profile": "QWERTY123",
"notification": {
"title": "Hi",
"message": "Hello world!",
"android": {
"title": "Title!",
"message": "Message!"
}
}
}' "https://api.ionic.io/push/notifications"

TY guys!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>