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

How to create a ListView and add items to it programmatically without XML?
Fatal Exception when trying to read PDF or ePub files in Android
Android WebView Uncaught Reference Error
How to parse a JSON Object to get an Array with in Array?
Display Data From Existing SQLite Database To Listview
Pause Timer in Android app
Application hangs on BluetoothSocket.connect(), hangs on InputStream.read(), can't disconnect after connect()
New Fragment Layout not showing on screen android
Make existing Android app freemium, unfair to existing customers
How to read data from a device at the Kernel Level?
Insert new data into sqlite if not present
Adverse effects of uppercase characters in package name
Can't achieve notifyDataSetChanged()
How to decode the image string to bitmap image from php server?
Showing multiple markers in google map v2
How to get the time for which screen is ON

Categories

HOME
pda
swt
saml-2.0
shiro
appcelerator
carousel
dojo
iis-6
data-visualization
crystal-reports-2013
title
rcloud
augeas
drop-down-menu
vimdiff
opengl-es-3.0
entitymanager
intershop
vuejs
asp.net-mvc-viewmodel
imessage
asp.net-core-webapi
articulate-storyline
question2answer
string-concatenation
event-store
tosca
cppreference
event-flow
kudu
left-join
kodi
dumpbin
laravel-eloquent
joomla2.5
python-import
jwplayer6
roblox
loading
hackintosh
congestion-control
xmldocument
identification
x-ray
arq
yii2-user
subnet
excel-dna
libjpeg
vcloud-director-rest-api
latin
synonym
simevents
swizzling
redis-cluster
fink
database-relations
piracy-prevention
vhosts
sapi
dock
.bash-profile
dronekit-android
ocra
filesplitting
ssis-data-flow
linkedin-jsapi
cbind
unix-socket
angular-carousel
memset
extjs2
octal
video-codecs
web-notifications
pdfviewer
android-loadermanager
tree-balancing
promotion-code
winmain
clrstoredprocedure
metaweblog
objective-j
delimited-text
echo3
perl5.12
fault-tolerance
product-management
wcf-proxy
mathematical-typesetting

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