docs
docs copied to clipboard
Android push notifications example app fails with "Only the original thread that created a view hierarchy can touch its views"
I've copied verbatim the example app from the tutorial (replacing the API keys etc where necessary) and got "Only the original thread that created a view hierarchy can touch its views" error in the console when starting to log. The error is thrown here https://github.com/ably/tutorials/commit/android-push-step4#diff-063cf8734d18fa93dd0cd52e9782e589R62-R63. Removing those lines makes the app work.
This for the Push Notifications tutorial - for Android devices.