Git Product home page Git Product logo

Comments (12)

progress44 avatar progress44 commented on June 5, 2024 1

I'll check this out but it has been tested before.

from ti.goosh.

hannta avatar hannta commented on June 5, 2024

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.

progress44 avatar progress44 commented on June 5, 2024

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.

quocbao1087 avatar quocbao1087 commented on June 5, 2024

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.

progress44 avatar progress44 commented on June 5, 2024

@quocbao1087 which version of ti.goosh are you using and what device are you testing it on?

from ti.goosh.

quocbao1087 avatar quocbao1087 commented on June 5, 2024

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.

progress44 avatar progress44 commented on June 5, 2024

Some devices require particular permissions from the user. What device are you using?

from ti.goosh.

hannta avatar hannta commented on June 5, 2024

@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.

progress44 avatar progress44 commented on June 5, 2024

@hannta whether data is correct or not is irrelevant if you include notification because FCM will only consider notification

from ti.goosh.

quocbao1087 avatar quocbao1087 commented on June 5, 2024

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.

hannta avatar hannta commented on June 5, 2024

Thanks @progress44, my issue was because incorrect data (im using FCM).

from ti.goosh.

mitulbhalia avatar mitulbhalia commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.