After spending two days on trying to solve this problem I eventually did by just rebuilding the whole app from scratch. I'm sure somewhere in the code the directories were wrong but I couldn't find it.
Topic:
App & System Services
SubTopic:
Core OS
Tags: