Giter VIP home page Giter VIP logo

Comments (27)

nrpverma avatar nrpverma commented on July 25, 2024

[WARN] : W/ti.goosh.IntentService: Show Notification: FALSE
[INFO] : {"data":"{"c.i": "null"}","inBackground":false}
[INFO] : GCMIntentService: (IntentService[GCMIntentService--1]) [4,158634] Title: test 12
[INFO] : GCMIntentService: (IntentService[GCMIntentService--1]) [0,158634] Message: test
[INFO] : GCMIntentService: (IntentService[GCMIntentService--1]) [0,158634] Ticker: null

Above payload getting when the app in the foreground.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

Thnks ill try. but when the app is in background or killed not getting callback please help for the same?

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

@Hemantsolanki103 why there is two data object?

"data":{
"data":{

?

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

Please tell me, you are getting notification in notification bar when your app in background or quit from background?

As per documentation of module, I have sent two json under json. And as per your question you are getting "{"data":"{"c.i": "null"}","inBackground":false}" but you should get proper json in data json object. So that is the reason you have to sent data as a given solution.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

no, I m not getting the notification in status bar.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

Device's Android Version : Moto G5 Plus/v8.1.0

Operating System
Name = Mac OS X
Version = 10.13.6
Architecture = 64bit

CPUs = 4

Memory = 8589934592
Node.js
Node.js Version = 8.9.1
npm Version = 6.4.1
Titanium CLI
CLI Version = 5.1.1
Titanium SDK
SDK Version = 7.4.0.GA
SDK Path = /Users/Library/Application Support/Titanium/mobilesdk/osx/7.4.0.GA
Target Platform = android

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

yes, i replaced the module with urs.

yes already intialzed this in tiapp.xml:
CHANNEL NAME

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

Ok, I share appc info of my PC.

Appcelerator Command-Line Interface, version 7.0.6
Name = Mac OS X
Version = 10.13.6
Architecture = 64bit

CPUs = 4

Memory = 8.0GB

Node.js
Node.js Version = 8.9.4
npm Version = 5.10.0
Appcelerator CLI
Installer = 4.2.13
Core Package = 7.0.6
Titanium CLI
CLI Version = 5.1.1
node-appc Version = 0.2.44
Titanium SDKs
7.4.1.GA
Version = 7.4.1

Tomorrow I will try to provide you small video for demo or my sample application.

from ti.goosh.

Jei avatar Jei commented on July 25, 2024

We've just released a new version of Ti.Goosh that should solve this problem. You can find it here.
I'm closing this issue as it is a duplicate of #114. If you still have the same problem with Ti.Goosh 4.2.0, you can use that thread.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

@Jei Didn't work, same issue still I'm getting. stuck with this issue since last 3 days.

@Hemantsolanki103 sure Hemant thanks, that would be great.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

@Hemantsolanki103
i configured as per urs, but still the same issue

Operating System
Name = Mac OS X
Version = 10.13.6
Architecture = 64bit
CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 8.9.4
npm Version = 5.6.0
Titanium CLI
CLI Version = 5.1.1
Titanium SDK
SDK Version = 7.4.1.GA
SDK Path = /Users/Library/Application Support/Titanium/mobilesdk/osx/7.4.1.GA
Target Platform = android

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

I'm using admin portal for the push notification.

i have changed the payload as you suggested but small changes removed the nested data object.

{"to":['your device token'],
"data":{
"title":"abc",
"alert":"abc",
"badge":2
}
}

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

ok, let me try.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

I am sure if you send payload correctly, your problem will resolved.
If you will not get success again then I try to send my POC application from other medium.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

Yes, now i m getting payload. but with the error.

[INFO] : Succes data {"data":"{"alert":"your message","title":"Working Good"}","inBackground":false}
[ERROR] : V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected end of JSON input

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

I got the above payload when the app is in the foreground.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

Great,
Please share your callback function where you handle your payload.
Second try in background mode.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

I tried in the background. nothing is happening.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

Please share your callback function where you handle your payload.
First we resolve your error

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

yes, got resolved, when the app is in the foreground.
but the notification not getting when the app is in the background or killed.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

PushTest.zip

Please check working POC application for all API level device.
Working Mode: Background and Foreground

Test POC application and find what is missing.

from ti.goosh.

nrpverma avatar nrpverma commented on July 25, 2024

@Hemantsolanki103, i build ur provided app in my device using my sender id. I sent notification using http://pushtry.com/.
i got the payload in the foreground, but when the app got killed didn't receive the notification on status bar.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

I get push when application quit accord to below scenario.
First send one notification in foreground and then quit application and send push.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

With Module : 4.2.0

Scenario: when application launch and quit from background and send push notification, push not come but you launch the application then push previous push will come.

Please check once.

from ti.goosh.

reactnative103 avatar reactnative103 commented on July 25, 2024

I hope your issue has been resolved.

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.