Skip to content

Crashs on API 29 - API 28 #29

@lemosadiego

Description

@lemosadiego

Hello people.
I have an IONIC 4 application and to perform the migration to meet API 28 and 29, I upgraded the version of cordova-plugin-background-geolocation to 3.0.1 (previously used 2.3.6).
I am getting the error below on Android:

Process: br.com.kdcare.professional, PID: 8005
    android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification (channel = null pri = 0 contentView = null vibrate = null sound = null defaults = 0x0 flags = 0x62 color = 0xffff0000 vis = PRIVATE)
        at android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1938)
        at android.os.Handler.dispatchMessage (Handler.java:107)
        at android.os.Looper.loop (Looper.java:214)
        at android.app.ActivityThread.main (ActivityThread.java:7319)
        at java.lang.reflect.Method.invoke (Native Method)
        at com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run (RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main (ZygoteInit.ja
va: 934)

My AndroidManifest.xml already contains the line below:

Anyone else with this problem that can help?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions