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

Init App from SQLite DB from multiple table?
Android/Eclipse: The following classes could not be instantiated: - com.google.android.gms.ads.AdView
load pictures from drawable folder for each record from Sqlite
Creating Java libraries compatible with Android SDK
a class similar to android.graphics.Canvas, but useable with GLSurfaceView.Renderer / opengles.GL10
jQuery Mobile Transition not working
Android WiFi Debugging -> Logcat
Soundboard stops playing the sound too soon
MediaStyle notification updates
Unable to instantiate activity ComponentInfo exception when using SherlockFragmentActivity .
Lazy Loading for GridView
MediaPlayer makes artefacts after tracking a song
How to solve undefined getactivity in android application?
How can I make an animation repeat in ViewPropertyAnimator?
Setting exposure compensation with cwac-camera
Android Toolbar Not Calling onOptionsItemSelected From Fragments On Backstack

Categories

HOME
windows
algorithm
gridview
jpa
github-for-windows
amp-html
google-spreadsheet
jmx
apiblueprint
spring-data-redis
pclxl
pyqt4
barcode
p2p
pattern-matching
syntaxnet
google-schemas
octave
distribution
alamofire
symmetricds
enterprise-architect
do-while
coin3d
microsoft-dynamics-nav
google-data-studio
video-editing
sse
apache2.4
squashfs
babel
libigl
question2answer
inno-download-plugin
exit
qliksense
xunit
gpio
jackson-modules
openmdao
jaws
testcomplete
testbed
wacom
modalviewcontroller
browser-extension
hivemq
salesforce-communities
jpad
modernizr
verifiable-c
c9.io
news
vmware-fusion
dcmtk
attributeerror
glm-math
congestion-control
tcc
knime
flask-login
puredata
openresty
textsum
dotnet-httpclient
wcftestclient
yii2-api
user-defined-fields
vugen
twilio-click-to-call
convex-optimization
payara-micro
filenet
rmongo
node-request
usart
envi
jboss-tools
mediametadataretriever
rasterize
libvlc
character-replacement
fuelcms
canalyzer
dronekit-android
uvc
at-job
sonarqube-5.0
deform
spy++
machine-instruction
genymotion-call
xml-namespaces
ignite-ui
build-script
terminate
twitter-bootstrap-rails
bin
visual-studio-express
jammer
printdialog
workitem
ui-select2
font-awesome-4.0.0
preload
bjyauthorize
failing-tests
screen-size
mysql-error-1205
webdev.webserver
ruby-1.8
facebook-iframe
django-piston
todos
linfu-dynamicproxy
cardspace

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