question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with version 0.9.0-beta 3 on android and ios using ionic

See original GitHub issue

WARNING: 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
pitiscommented, May 13, 2020

I’m having the same problem when building on android 😦 did you find a solution or alternative?

image

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

0reactions
mrunwalcommented, Mar 24, 2021

Thanks worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Store Connect warning: UIWebView API deprecation
Hi Team I create ionic app for ios and submitted on Test Flight to test in devices But i got following mail and...
Read more >
Ionic cordova application will not install properly to Android ...
I was finally able to solve this by rolling back to Android compile & target SDK 32. I noticed a new error about:...
Read more >
Ionic Localnotifications With Capacitor: Cannot Find ... - ADocLib
Plugin version: 0.9.0beta.3; Platform: Android; Cordova version cordova v ... and Problem with version 0.9.0beta 3 on android and ios using ionic #1904....
Read more >
Ionic android buil fails - RevenueCat Community
Hi, so we are using ionic capacitor framework. Everything works fine on IOS but we have problem with Android. So when we start...
Read more >
The 9 Most Common Mistakes That Ionic Developers Make
The problem with Cordova CLI is that the platforms and plugins you install ... When using Ionic CLI to install platforms ionic platform...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found