Problem with version 0.9.0-beta 3 on android and ios using ionic
See original GitHub issueWARNING: IF YOU IGNORE THIS TEMPLATE, WE’LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Your Environment
- Plugin version: 0.9-beta3
- Platform: android and ios
- OS version: 10.15.4
- Device manufacturer / model: Macbook pro
- Cordova version (
cordova -v
): - Cordova platform version (
cordova platform ls
): - Plugin config
- Ionic Version (if using Ionic) 5.1
Expected Behavior
On Android I cant even build the project because of deprecated functions.
On iOS i receive the notification if I’m in app, but if the app is inactive, I receive no notifications.
Actual Behavior
Tell us what happens instead
I should be able to receive notifications even if I’m not in the app and should be able to use in android.
Reproduce this issue; include code to reproduce, if relevant
localNotifs.schedule({
id: idNotif,
title: New message from ${data.message.chatData.sender.name}
,
text: data.message.message,
icon: data.message.chatData.sender.profileImg,
foreground: true,
})
Context
Im trying to receive a notification when app is not active.
Debug logs
Include iOS / Android logs
- ios XCode logs
- Android: android\capacitor-cordova-android-plugins\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:33: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top GitHub Comments
Yes, I found a solution on the Capacitor docs. You have to install jetifier. You can find more info here:
https://capacitor.ionicframework.com/docs/android/updating
Basically you need to update the project to AndroidX
Thanks worked