Comments (27)
[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.
Thnks ill try. but when the app is in background or killed not getting callback please help for the same?
from ti.goosh.
@Hemantsolanki103 why there is two data object?
"data":{
"data":{
?
from ti.goosh.
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.
no, I m not getting the notification in status bar.
from ti.goosh.
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.
yes, i replaced the module with urs.
yes already intialzed this in tiapp.xml:
CHANNEL NAME
from ti.goosh.
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.
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.
@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.
@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.
from ti.goosh.
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.
from ti.goosh.
ok, let me try.
from ti.goosh.
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.
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.
I got the above payload when the app is in the foreground.
from ti.goosh.
Great,
Please share your callback function where you handle your payload.
Second try in background mode.
from ti.goosh.
I tried in the background. nothing is happening.
from ti.goosh.
Please share your callback function where you handle your payload.
First we resolve your error
from ti.goosh.
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.
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.
@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.
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.
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.
I hope your issue has been resolved.
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
- [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.