Android app unable to show existing posts
See original GitHub issue- Ghost version: 1.23.0
- App version: 1.1.3
- Android version: 7.0
- Motorola Moto G5
On logging in to Ghost (self hosted) with the app I’m unable to view existing posts. Instead I receive a toast which says Couldn't refresh data
. This seems to come from the onDataRefreshedEvent()
method of PostListActivity.java
.
What is interesting is that I can create a new draft and that appears in the Ghost web UI, so clearly there is some communication working. Similarly, my correct blog name and avatar show in the app.
According to my webserver, the following has happened on the refresh request:
[30/May/2018:19:57:35 +0000] "GET /ghost/api/v0.1/settings/?type=blog HTTP/1.1" 304 0 "-" "okhttp/3.9.0" [30/May/2018:19:57:35 +0000] "GET /ghost/api/v0.1/users/me/?include=roles&status=all HTTP/1.1" 304 0 "-" "okhttp/3.9.0" [30/May/2018:19:57:35 +0000] "GET /ghost/api/v0.1/posts/?status=all&staticPages=all&include=tags&formats=mobiledoc,html&limit=30 HTTP/1.1" 200 14418 "-" "okhttp/3.9.0"
If I delete the draft in the web UI the app still shows it as existing. Editing the draft on the phone and saving it again as a draft results in saved on device, waiting to go online...
.
Any advice would be appreciated. Happy to assist with troubleshooting but I don’t have another Ghost instance to experiment with.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:21 (10 by maintainers)
Top GitHub Comments
@jlelse it’s not optimal, but it’s a start. I would rather begin with a simple fix (ignore Koenig posts) so users can at least see their other posts and continue to edit those. Then we can move on to the question of what aspects of Koenig to support in the Android app.
Rendering posts created with Koenig is going to be a non-trivial change because it’s no longer a simple markdown => HTML conversion, and editing support is going to take even more effort. I looked at the Medium app just now - your suggestion makes sense, so we can aim for something like that eventually 🙂
@vickychijwani Is full support for the new mobiledoc format on the roadmap? Is there anything we (the community) can do to help to get that implemented?