It seems like its only an issue in the Xcode simulator, when i make a .ipa build everything seems to work fine