question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
vickychijwanicommented, May 30, 2018

@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 🙂

1reaction
jimbuckcommented, Mar 26, 2019

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems with Google News - Android
If your issue or subscription doesn't show in your “Following,” check that you're signed in with the account that bought it. Open your...
Read more >
Session 'app': Error Launching activity - android - Stack Overflow
To solve that, go to: Settings -> Apps & Notifications -> See all Apps -> find the app you are trying to install....
Read more >
Facebook not working? How to fix common Facebook issues
Clear cache on Android : · Open the Settings app. · Go into Apps. · Find the Facebook app under See all apps....
Read more >
Notification runtime permission - Android Developers
App capabilities depend on user choice in permissions dialog · Select allow · Select don't allow · Swipe away from the dialog, without...
Read more >
Instagram Not Working? Here Are 14 Ways to Fix it
To update the Instagram app on Android, open Google Play Store and search for Instagram. If you see an “Update” button next to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found