-
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
⬆️ More upgrade fun! Upgrade android to API 29 #557
Comments
Here's a summary of the changes that apply to us:
If we do want to use the Foreground Service exemption, we must expand it. For now, let's have both the foreground service and the background location permission. We can remove the foreground service in a later version once we have had more time for testing.
Another restrictions is on launching an activity in the background
Let's tackle each of these separately. |
The first change was the most challenging. We don't only request the permission; we also periodically check if we have it, and we generate notifications if we don't. Trying to duplicate that code, only with Second change was a one-liner to Third change may be the trickiest. Searching through the code indicates that
So to finish testing this, we should try local and push notifications. the push notification will also test the IAB, so we will be done |
Alas, the Adding a parameter that controls whether or not to recheck the permissions fixed that while still allowing the foreground service to close properly. Tested local notifications and remote notifications and they both work. |
Not so soon. It turns out we are still checking for the background permission on android 7 as well. Since the permission was only introduced in API 29, this check fails continuously and we can't track anything. Remote notifications work, but the UUID is not getting filled in, need to investigate potential regression on the urap branch. |
ok, so the UUID not getting filled in is because of the changes to support Google Forms. wrt greater generality:
Note that Firefox supports getting the xpath of any element from the inspector (Right-click -> Copy -> xpath) The document object has the following methods:
So we can't easily retrieve elements by other attributes. Should probably support id and xpath only.
We should only support full xpath for consistency. We can find elements that match an xpath by using Seems like a nice addition even if it is not critical |
Changes documented here: e-mission/e-mission-docs#557 - Add the `BACKGROUND_LOCATION` permission - Fix the motion activity permission For the background location permissions, make sure we prompt for it correctly (i.e. prompting along with location permission in general), check for it correctly, and only use it for Q+. The other changes were fairly straightforward
Testing done:
Everything seems to work! I'm not seeing any activity recognition events in the emulator though. Not sure if that is related to the emulator or activity recognition enablement in general. Will have to test on real phones to find out. |
Closing this issue now |
Since yesterday, Aug 3rd 2020, all new apps published to the app store require to support a minimum of API 29.
Now I wish I had prioritized uploading the app on Friday instead of fixing the server issues first.
https://developer.android.com/distribute/play-policies
The text was updated successfully, but these errors were encountered: