ARLearn / ios

0 stars 0 forks source link

login op ios simulator 5s/6s does not work #14

Open stefaanternier opened 9 years ago

stefaanternier commented 9 years ago

The login screen remains blank. See attachment screen shot 2015-10-07 at 14 58 40

stefaanternier commented 9 years ago

below the log output: [71]| Version String: 1.0.127 [72]| Build Number: 127 [73]| Git Commit Hash: 22bee62+ [514]| Current Default Core Data Stack: ---- Model: { Account = <49a5e932 7e107c75 11e0abd2 eb330d8f 33ffb784 e06e7c01 1e31eaff 226c1d3f>; Action = <cbc5f0cc 1224d093 fa072dc2 596cdf80 4134a5c3 212953c4 1e630ba8 b409c49b>; CurrentItemVisibility = <77ccf6c6 0f118d56 5be80ff3 c7cb6ade 8bb0c7da b7e86af5 ccb74e5e 89f93a22>; Game = <57176646 6fb4cfb0 7c280ff2 31d6c277 d65aefa2 3401d982 ca4057cb c956db6c>; GeneralItem = <0b42d140 eaf65531 69357996 f5c978c6 15ae827d a0ecbe85 b4a4cfce 1be06437>; GeneralItemData = <39a27399 a043897a aee5d00a 341a237c 3ba20978 cfd5d0c5 3decba3b d024292d>; GeneralItemVisibility = <80e8db0b a56aaf41 cce1ed63 2468b137 7df89e64 13c8557a b7873f1c 283ac42d>; Inquiry = <2b31cd17 475a1a71 2ef08a9f b80e631a 8d4f20f6 127c069e 2206fc37 0f4333b3>; Message = <c9dac323 d233e3fb c2a43cbf 9deeb49a 0cd768a9 dbcd58ef f8fc62e5 d861006d>; Response = <63356ad9 8b0e605a 3b7c70c8 8456dff7 97c548f2 d43e5cce 8ef9a0cf 585d494d>; Run = <c98f9858 b5a5639b b6ea0752 4e15d2b9 75a8fe3a 13805f7d fc479fbc 665d1859>; SynchronizationBookKeeping = <ce4dbcf5 6db1ebd9 843fbb7d c9d06d40 bd48269f 582724d5 bf337f02 7414d443>; } Coordinator: <NSPersistentStoreCoordinator: 0x7ff003428e60> Store: <NSSQLCore: 0x7ff00342b940> (URL: file:///Users/str/Library/Developer/CoreSimulator/Devices/7FD1DCE5-9463-4F4C-8F5B-6D6BC21D0984/data/Containers/Data/Application/24EF4DDE-B666-4B37-A733-CB7DC9313A79/Library/Application%20Support/ARLearn/ARLearn.sqlite) Default Context: <NSManagedObjectContext (0x7ff0035d0d60): MagicalRecord Default Context> on the main thread Context Chain:

2015-10-07 15:00:36.415 ARLearn[77216:1902429] registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later. 2015-10-07 15:00:36.433 ARLearn[77216:1902726] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

wvdvegt commented 9 years ago

Both last lines are probably bugs (the registerForRemoteNotificationTypes has to do with API changes in APN)

wvdvegt commented 9 years ago

Indeed two error's both fixed. 1) The registerForRemoteNotificationTypes call was a left-over and is removed. 2) iOS 8/9 add a new type of restriction for which permission is necessary. Plain text http:// protocol is no longer enabled by default and an exception need to be added for each domain accessed (will add it to weSpot too). The apps plist file has almost doubled in size and basically says insecure is fine!

Better is to switch the url to using ssl ie https:// For this the server info on oauth has to be changed. Changing the offending http:// redirect urls on the client doesn't work and results in oauth failures.

wvdvegt commented 9 years ago

Please test and close issue.