Viewing 11 posts - 1 through 11 (of 11 total)
-
AuthorPosts
-
March 10, 2020 at 4:42 pm #46057
benParticipantHi guys, I have built the IOS app and it works fine through ionic serve (Chrome). However now using it through testflight it will not connect with the site (show courses in directory) or login. I have tried both: SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 and SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1 in .htaccess. if it is set to $1 I do get some issues when running it through ionic serve, so I set it to $0. I would appreciate support on this, the client ID must be correct as it works in testing, but not in the app. Thank you for all your hard work, BenMarch 11, 2020 at 3:37 am #46102
benParticipantJust something I missed out, I have made previous builds of the app and it has worked fine in Testflight, Issues began when updating my app to the latest version. Thanks again!March 13, 2020 at 7:20 am #46336
Scott LangKeymasterPlease clear your app cache on the device to run your app again it can old configured site data. Also, you can run your ios app in XCode and debug the app on safari. The error will be shown in-network and console. Checking with your given file.March 14, 2020 at 5:39 am #46403
benParticipantThanks Scott! I will give it a try. I will post my results for reference to othersMarch 14, 2020 at 6:55 am #46443
benParticipantHi Guys, Issue in debug is: Origin ionic://localhost is not allowed by Access-Control-Origin I have tried allowing access control origin in .htaccess and adding code suggested in other posts into the wplms customizer plugin - but with no sucess!: function add_cors_http_header(){ header("Access-Control-Allow-Origin: *"); } add_action('init','add_cors_http_header'); The app worked in previous old versions of the app, which leads me to believe it's something in the new app files? Any help would be greatly appreciated.March 16, 2020 at 12:03 pm #46597
Scott LangKeymasterRefer our config.xml:https://we.tl/t-IqU8FGGRcG Compare origin error which is not present in your app.March 19, 2020 at 12:28 am #46876
benParticipantThanks for that Scott! All working now. To anyone else trying to find a fix for this: It was a mixture of errors, although the app worked in previous builds, since updating the app files it seems to pull requests from the site in different ways. I updated my config.xml with the additional access origin parameters that I missed out, provided by the vibe guys,- <access origin="*://*/*" />
- <access origin="file:///*" />
- <access origin="cdvfile://*" />
-
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)
- You must be logged in to reply to this topic.