android


Amazon SNS error on Android / titnaium


I am making application with push notification by Amazon SNS.
I can subscribe to application and topic of amazon SNS.
Then I try to send push notification from amazon console by JSON.
However if I sent push notification to Android application.
When app is foreground
shows error like this.
[ERROR] TiExceptionHandler: (main) [64489,66464] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,66464] - In undefined:1,1
[ERROR] TiExceptionHandler: (main) [0,66464] - Message: Uncaught SyntaxError: Unexpected end of JSON input
[ERROR] TiExceptionHandler: (main) [0,66464] - Source:
and this error also appeared.
[INFO] D/ti.goosh.IntentService(10341): Push notification received from: 776163960666
[INFO] D/ti.goosh.IntentService(10341): Notification key : google.sent_time => 1494823941163 (java.lang.Long)
[INFO] D/ti.goosh.IntentService(10341): Notification key : google.message_id => 0:1494823941172156%cbe23e67f9fd7ecd (java.lang.String)
[INFO] D/ti.goosh.IntentService(10341): Notification key : message => test text (java.lang.String)
[INFO] I/ti.goosh.IntentService(10341): Not showing notification cause missing data.alert
[INFO] E/ ( 194): invalid crash request of size 4 (from pid=10492 uid=0)
When app is background
Nothing happens.
My Titanium SDK version is 6.0.3.GA
Does anyone has the same error??
Json is like this, it is generated amazon SNS JSON Generator. So I guess it's correct.
{
"default": "test text",
"GCM": "{ \"data\": { \"message\": \"test text\" } }"
}
I have changed message like this,
{
"default": "test text",
"GCM": "{ \"data\": { \"message\": \"test text\", \"data\":{\"alert\": \"message sent!!!!\"}} }"
}
It works, somehow because of GCM structure changes??

Related Links

Override back button with moveTaskToBack in Android 4.4.2 KitKat
Application disappeared from Google Play after changing title
Data from parse.com is not displayed when internet is unavailable (cache available)
If there isn't any external storage
Callback after sharing intent completes
How can I pass a custom object from one activity to another using putExtra()
Video streaming from xml file(android)
Wifi sleep policy and wifi lock which one overrides when both conflict?
Parse entire soap response in android with ksoap2-android
how to bring text close to image in a button
Android splash screen with a different image each time the app starts
nothing is being displayed after opening the app
Getting a TableLayout from a fragment
sending and receiving notification in android
Show Facebook / Google plus profile image in higher version
Long text in Android TextView pushes out other Objects

Categories

HOME
phantom-dsl
gridview
turing-machines
design-patterns
deep-learning
wakanda
amp-html
formal-languages
interface
knitr
nuget
r-googlesheets
nsbundle
rds
cq5
mips
pearson-correlation
mapbox
computer-science
distribution
docx
mongodb-csharp
powershell-v5.0
intershop
fileserver
jersey-1.0
digital-signature
symfony-console
enterprise-miner
topology
asp.net-core-webapi
lilypond
href
backpack-for-laravel
ios10.2
onload
corpus
asymptotic-complexity
delimiter
android-things
finagle
userdefaults
zend-debugger
mustache
contacts
twos-complement
yowsup
imx6
searchkit
modernizr
projects-and-solutions
android-softkeyboard
branching-and-merging
hammer.js
yii2-api
posixct
trojan
zenhub
magic-draw
pair-programming
amq
boxing
rxtx
rsa-archer-grc
smartfoxserver
stripe-connect
chromium-os
atlas
myspace
dup
udpclient
gcloud-ruby
redis-cluster
nupic
exim4
r-package
dllimport
django-urls
dock
rpart
apache-commons-daemon
avahi
botan
zxspectrum
ghcjs
administration
reflector
renderer
koala
mt4j
kendo-dataviz
code-duplication
scringo
poker
css-reset
frameworkelementfactory
boost-signals
thttpd
jquery-address
filemerge
mbeans
squishit
updatesourcetrigger
burndowncharts
echo3
lalr
soappy
mathematical-typesetting
wspbuilder
pnrp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App