[Android SDK] OnMessageReceived not called in WearableListenerService

After adding a wear module to an old app, I found that the messages sent by my wearable were not waking up my WearableListenerService implementation.

After several wasted hours, I noticed that the wear module’s package name was wrong.

This is how it was, and how I fixed it.

BAD:
[module: app] es.voghdev.myapp
[module: wear] es.voghdev.myapp.wear
GOOD:
[module: app] es.voghdev.myapp
[module: wear] es.voghdev.myapp

It finally works. Made me waste several valious hours!!

I hope that you, reader don’t fall on the same pit! 🙂 also replied this SO question.

Have a nice coding day!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s