-
Notifications
You must be signed in to change notification settings - Fork 34
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
Couple of native code fixes #722
Comments
cutout overlap seems to require |
For the first issue, let's replace the assert by
|
There are a bunch of additional asserts in the transition notifier code. We may also consider removing the plugin completely since nobody seems to want to use it. |
for the second issue: https://udn.realityripple.com/docs/Web/CSS/@viewport/viewport-fit
|
So ionic1 does not support the safe area inset variables
Tried to add them manually per instructions:
But they are overridden by All the stuff in Can we just remove it, or will it break anything else? |
Turned out that this was because the Further changes:
|
Apparently, the right way to select by class is:
|
This is a fix for the first issue in e-mission/e-mission-docs#722 notably, converting all the asserts to stats so that the app won't crash e-mission/e-mission-docs#722 (comment) and returning NULL from those conditions The new stats names are stored in the `cordova-usercache` plugin
One final issue: Giving additional notification privileges causes the notification check on iOS to fail.
which maps to a types of 5 If the user allows sound as well, the requested types are 5, but the provided types are 7, which causes this check to fail
Couple of potential fixes:
|
To ensure that we don't fail if we have more permissions than requested e-mission/e-mission-docs#722 (comment) Without this fix, having sound enabled for app notifications would cause the checks to fail to fail, since the requested flags = 5 and the actual flags = 7 With this fix, we bitwise and the two values to remove the excess permissions. 7 (111) & 5 (101) = 101 = 5 = requested permissions
This fixes the second issue in e-mission/e-mission-docs#722 (comment) In particular, we add the `viewport-fit=cover` tag. Unfortunately, since we are using ionic version 1, it doesn't automatically set all the safe areas correctly. So we had to figure out how to send them manually. Finally got it to work, applied it only to iOS e-mission/e-mission-docs#722 (comment) Both iOS and android work well now, at least in profile mode e-mission/e-mission-docs#722 (comment)
- notification check: e-mission-data-collection e-mission/e-mission-docs#722 (comment) - crashes e-mission-transition-notify, cordova-usercache e-mission/e-mission-docs#722 (comment)
@asiripanich here are some fit and finish fixes for iOS, including a crash and the "notch" UI on recent model phones. |
@shankari thanks! I will get our team to test this. |
Crash reported in the app store
Related code is:
UI overlaps the cutout for the camera on newer iPhone versions
Force-kill message is too long to view but doesn't show details when app is opened
Looks like I fixed this anyway....
The text was updated successfully, but these errors were encountered: