Skip to content
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

[Bug] Android 4.4 Job Scheduler Exception #63

Closed
2 of 14 tasks
wolfet opened this issue Aug 8, 2019 · 2 comments
Closed
2 of 14 tasks

[Bug] Android 4.4 Job Scheduler Exception #63

wolfet opened this issue Aug 8, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@wolfet
Copy link

wolfet commented Aug 8, 2019

IF YOU DON'T ANSWER THIS TEMPLATE - THE BOT WILL AUTOMATICALLY CLOSE YOUR ISSUE!

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

  • iOS
  • Android
  • UWP
  • watchOS
  • tvOS
  • Tizen
  • .NET Standard

Feature Library

  • Core
  • BluetoothLE
  • Beacons
  • Locations
  • HTTP Transfers
  • Notifications
  • Sensors

Version of Library

1.0.0.307-beta

Version of OS(s) listed above with issue

v4.4 - KitKat
Should be any Android version with API level less than 21 - Lollipop

Steps to Reproduce

  1. Call AndroidShinyHost.Init on an Android device with Android 4.4

Expected Behavior

Shiny should initialize without any exceptions on Android 4.4.

Actual Behavior

A null reference exception is thrown in the Shiny.Jobs.ServiceExtensions class in StopJobService and StartJobService because the call to NativeScheduler returns null. According to this page, JobScheduler was introduced in API level 21.

image

Making the two changes in my screenshot below from the Shiny.Core > Jobs > Platforms > Android > ServiceExtension.cs file provided a workaround for me to avoid the exception.

image

@wolfet wolfet added bug Something isn't working unverified This issue has not been verified by a maintainer labels Aug 8, 2019
@wolfet wolfet changed the title [Bug] [Bug] Android 4.4 Job Scheduler Exception Aug 8, 2019
@aritchie
Copy link
Member

aritchie commented Aug 8, 2019

Shiny only supports android 5x and above.

@aritchie aritchie added wontfix and removed unverified This issue has not been verified by a maintainer labels Aug 8, 2019
@stale stale bot removed the wontfix label Aug 8, 2019
@aritchie aritchie closed this as completed Aug 8, 2019
@lock
Copy link

lock bot commented Aug 12, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants