-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement handleNotification to ensure compatibility with iOS 10 and earlier #31
Conversation
Merge latest changes
@Andrew-Tan can you update the PR with the testing that you did? |
Tested on an iPhone emulator with iOS 9.2 |
Cool! I have created a build with the fix and am uploading to TestFlight. |
@shankari, thank you! I'll send you my developer username in private to avoid spam. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error handling sometimes feels tedious, but it is actually really important...
src/ios/OpenIDAuth.m
Outdated
// For compatibility with iOS 10 and earlier | ||
NSURL* url = [notification object]; | ||
if ([url.scheme isEqualToString:@"emission.auth"]) { | ||
[self.currentAuthorizationFlow resumeAuthorizationFlowWithURL:url]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you have to set currentAuthorizationFlow
to nil
if successful?
https://github.com/openid/AppAuth-iOS/blob/619bb7c7d5f83cc2ed19380d425ca8afa279644c/README.md#authorizing-ios
While testing this, found that the update to the ionic deploy plugin (that supports downloading a custom UI), required to fix https://github.com/e-mission/e-mission-phone/issues/443, broke on iOS 10. It still works on iOS11. The observed broken behavior is that ionic detects that there is no update on iOS 10, but that there is an update on iOS 11. So clicking on the update link on iOS 10 doesn't popup the prompt to download the new UI-only update. Filed an issue against ionic - hopefully they will respond soon. |
Just confirmed that old version of the plugin works fine on iOS10. |
@uwtcat if ionic doesn't respond soon, or doesn't have a great answer as part of their response, I am tempted to roll back the update to the ionic deploy plugin, since it seems flaky, and focus on only the other fixes for the immediate release. I'll let you know by sometime tomorrow. |
Added completion handling logic |
@uwtcat @Andrew-Tan has just added one more code fix. I have just uploaded version 1.0.6 that includes that fix. I tried it out in the emulator, and it worked - can you please verify that this version also works on a physical device before I submit it? Also, @Andrew-Tan, after logging in, I clicked on "Open AccessMap", which tried to redirect to https://emission.accessmap.io/emission?uuid=34a4de78-87e2-4c29-ba3c-2b5a6413420d, but the resulting page is blank. Given that it is the main button right after logging in, we should probably fix that too before deploying. If you can verify that this is not a native issue, we can submit now and fix the javascript later... |
@uwtcat @Andrew-Tan I tested in the emulator, and the accessmap page loads on iOS11 but not on iOS10. Anat, have you tried clicking the button to load the AccessMap page? |
Ok, so the website load issue has nothing to do with e-mission. If I launch safari on the 10.2 simulator and try to navigate to https://emission.accessmap.io, I still get a blank screen. On 11.4, the same URL loads the page. @uwtcat you can verify this too. The error that I see from safari is
This looks like something that needs to be fixed in the code for accessmap; we don't need to discuss it here. @Andrew-Tan let me know if you want to you want me to open another issue if you want to continue discussing the WSOD error. |
Action items:
|
The Emission AccessMap site is developed by @nbolten, so he should be able to look into this issue. The app itself has nothing to do with the website (they are decoupled completely at current stage), so after @uwtcat had verified the change, please feel free to submit to app store review Thanks you :) |
@shankari
@Andrew-Tan
@nbolten
I believe this is a known issue. @nbolten corrected
this on our staging server, but likely did not update this version
(designed specifically for the emissions deployment). @nbolten
can you support the emissions end-point for access map
as it seems the same iOS issue persists here.
Thanks!
…On Sat, Sep 1, 2018 at 9:54 PM shankari ***@***.***> wrote:
@uwtcat <https://github.com/uwtcat> @Andrew-Tan
<https://github.com/Andrew-Tan> I tested in the emulator, and the
accessmap page loads on iOS11 but not on iOS10. Anat, have you tried
clicking the button to load the AccessMap page?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ2RhCRsPYcOlZW_UydSlDNXt9-M0Cqmks5uW2SMgaJpZM4WMRve>
.
--
Anat Caspi, PhD
Director, Taskar Center for Accessible Technology
Computer Science & Engineering, University of Washington
caspian@cs.washington.edu
|
@uwtcat ok, so once you verify that 1.0.6 still works properly, I will submit to the app store. |
Hey all! I've pushed the polyfills that I fixed in the dev branch, should work fine on slightly older iOS now and be testable. If this impacts the general release, give me a bit of a heads up, as this endpoint was meant for testing and we need to verify that analytics are working properly. |
Hi Nick-
We absolutely need to make sure analytics are working properly on this
endpoint. This is the endpoint for our data collection and validation.
Thanks!
Anat
…On Sun, Sep 2, 2018 at 1:28 PM Nick Bolten ***@***.***> wrote:
Hey all! I've pushed the polyfills that I fixed in the dev branch, should
work fine on slightly older iOS now and be testable.
If this impacts the general release, give me a bit of a heads up, as this
endpoint was meant for testing and we need to verify that analytics are
working properly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ2RhJp7Oy2VwN3KTlVP67HE_0TT0j_Rks5uXD9kgaJpZM4WMRve>
.
--
Anat Caspi, PhD
Director, Taskar Center for Accessible Technology
Computer Science & Engineering, University of Washington
caspian@cs.washington.edu
|
@uwtcat if you can verify that 1.0.6 works well on TestFlight, I can submit to App store today morning |
Unfortunately, it still has the same phenotype- doesn't redirect properly
after logging into OpenToAll.
…On Mon, Sep 3, 2018 at 9:19 AM shankari ***@***.***> wrote:
@uwtcat <https://github.com/uwtcat> if you can verify that 1.0.6 works
well on TestFlight, I can submit to App store today morning
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ2RhK2-xVLI9IV2jRpmw7XUx4ilYMv_ks5uXVaYgaJpZM4WMRve>
.
--
Anat Caspi, PhD
Director, Taskar Center for Accessible Technology
Computer Science & Engineering, University of Washington
caspian@cs.washington.edu
|
@uwtcat can you uninstall the old app and try with reinstalling 1.0.6? I just tried on my test phone (9.2) and it worked fine. "Open AccessMap" worked too. |
@shankari- I apologize, it turned out I had two versions of the app on my
phone. One really old one that I hadn't realized was there. Once removed,
everything is working well including the emissions.accessmap endpoint.
Please go ahead and submit if you are able.
Many thanks!!!
Anat
…On Mon, Sep 3, 2018 at 10:57 AM shankari ***@***.***> wrote:
@uwtcat <https://github.com/uwtcat> can you uninstall the old app and
reinstall 1.0.6? I just tried on my test phone (9.2) and it worked fine.
"Open AccessMap" worked too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ2RhOhWt1BDcRVwrBQ7cmY3U9NCvRU2ks5uXW2NgaJpZM4WMRve>
.
--
Anat Caspi, PhD
Director, Taskar Center for Accessible Technology
Computer Science & Engineering, University of Washington
caspian@cs.washington.edu
|
Just submitted. Current review times are 5 days. In the meanwhile, android users, and iOS 11+ users can continue testing... |
This pull request resolves the issue specified in here: #30