katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.02k forks source link

Error when using on Android 2.3 #42

Closed darkgeek closed 9 years ago

darkgeek commented 9 years ago

Hi,

I'm now developing an Android app that needs background service with this plugin, however, it refuses to work when the screen is off on my Android 2.3 (Force Close), and complains in logcat:

E/dalvikvm( 2129): Could not find class 'android.app.Notification$Builder', referenced from method de.appplant.cordova.plugin.background.ForegroundService.makeNotification
W/dalvikvm( 2129): VFY: unable to resolve new-instance 14 (Landroid/app/Notification$Builder;) in Lde/appplant/cordova/plugin/background/ForegroundService;

Is it possible to fix it? Thanks.

katzer commented 9 years ago

the plug-in does not support Android 2.x

darkgeek commented 9 years ago

Thank you for your reply, I think we should implement it ourselves.