Comments (12)
I'll check this out but it has been tested before.
from ti.goosh.
I have similar issue.
When the app is in foreground, I receive the notification, callback
is executed correctly with the data.
If the app is closed or in background, I click the notification, callback
not get called.
Using TiSDK 6.0.4.GA & ti.goosh 2.0.6, FCM (node-pushnotifications / node-gcm) for sending notifications.
from ti.goosh.
As discussed in previous issues, if you are using FCM, make sure to not use notification
.
The notification object behaves like (quote): "FCM automatically displays the message to end-user devices on behalf of the client app. Notification messages have a predefined set of user-visible keys and an optional data payload of custom key-value pairs."
Use only data
. Check out the documentation on how to send the payload correctly.
from ti.goosh.
HI, I am using GCM and push notification data same as document page: https://github.com/caffeinalab/ti.goosh - A PHP/Shell Example
from ti.goosh.
@quocbao1087 which version of ti.goosh are you using and what device are you testing it on?
from ti.goosh.
I am using TiSDK 6.0.4.GA & ti.goosh 2.0.6
I am testing on Samsung Galaxy A5 2016. Android 6.0.1
When the app is in foreground, I receive the notification, callback is executed correctly with the data.
If the app is closed, I click the notification, callback not get called.
from ti.goosh.
Some devices require particular permissions from the user. What device are you using?
from ti.goosh.
@progress44 im setting the data as data
object. Im able to get data
correctly when the app is in foreground, so I quess the issue is not in data it self?
My device Nexus 5.
from ti.goosh.
@hannta whether data
is correct or not is irrelevant if you include notification
because FCM will only consider notification
from ti.goosh.
I am using TiSDK 6.0.4.GA & ti.goosh 2.0.6
I am testing on Samsung Galaxy A5 2016. Android 6.0.1
When the app is in foreground, I receive the notification, callback is executed correctly with the data.
If the app is closed, I click the notification, callback not get called.
from ti.goosh.
Thanks @progress44, my issue was because incorrect data (im using FCM).
from ti.goosh.
Hi @hannta
Can you please provide your solution for this issue?
My issue is that callback is not called when app is completely closed. In all other aspects, it works well.
from ti.goosh.
Related Issues (20)
- How can we use both ios? HOT 3
- Failed to get GCM Registration Token:TIMEOUT HOT 1
- Cannot build with 7.1.0 SDK. HOT 10
- Crash Report HOT 2
- Crash report from Google Play HOT 1
- Crash report HOT 2
- Recent crash report HOT 10
- java.lang.ClassCastException receiving foregrounded FCM ttl and sent_time HOT 2
- Silent notification not receiving payload? HOT 2
- Getting invalid sender error
- Compilation Error HOT 10
- targetSdkVersion="26" Notifications not received on some android device HOT 24
- Android Oreo Issue --Notification is not receiving in background HOT 3
- Not getting callback when the app is in background or killed HOT 27
- [WARN] : W/ti.goosh.IntentService: Show Notification: FALSE HOT 5
- ti.goosh and ti.admob together
- Use Android notification channels HOT 1
- Firebase support - internal dependencies HOT 8
- Remove app from background, No notification get
- Need to bump version for TiSDK 9.x version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ti.goosh.