jitsi-meet icon indicating copy to clipboard operation
jitsi-meet copied to clipboard

runtime java lang exception error unable to start service

Open tirumalarajajee opened this issue 2 years ago • 12 comments

java.lang.RuntimeException: Unable to start service org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService@2970c3f with Intent { cmp=com.kalla.neyuktadentasoft2019.conferencecall/org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService (has extras) }: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(channel=JitsiOngoingConferenceChannel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=call actions=2 vis=PUBLIC)

tirumalarajajee avatar Jul 12 '22 15:07 tirumalarajajee

What SDK version are you using?

saghul avatar Jul 12 '22 16:07 saghul

implementation ('org.jitsi.react:jitsi-meet-sdk:6.0.0') { transitive = true }

tirumalarajajee avatar Jul 13 '22 05:07 tirumalarajajee

implementation ('org.jitsi.react:jitsi-meet-sdk:5.1.0') { transitive = true } working fine

tirumalarajajee avatar Jul 13 '22 05:07 tirumalarajajee

Tq for the great job

tirumalarajajee avatar Jul 13 '22 05:07 tirumalarajajee

Invalid notification (no valid small icon)

@tmoldovan8x8 should we have this set in the SDK?

saghul avatar Jul 13 '22 06:07 saghul

I kind of feel that this should be an app thing. Maybe we could set a default one in the SDK, but the notification icon is more something the app should customise.

tmoldovan8x8 avatar Jul 13 '22 06:07 tmoldovan8x8

Makes sense, but why did the previous SDK work then?

saghul avatar Jul 13 '22 08:07 saghul

I kind of feel that this should be an app thing. Maybe we could set a default one in the SDK, but the notification icon is more something the app should customise.

Excuse me, how to implement the notification icon with the android sdk? my application is also crash with that error. Thank you.

renannazar avatar Jul 13 '22 10:07 renannazar

For Android SDK v 6.0.0

java.lang.RuntimeException: Unable to start service org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService@8895689 with Intent { cmp=com.xxxxxxxxx.xxxxxxxxxxxxx/org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService (has extras) }: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(channel=JitsiOngoingConferenceChannel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=call actions=2 vis=PUBLIC)

How to fix this? please let me know

Swapnilsimplecrm avatar Jul 19 '22 01:07 Swapnilsimplecrm

You need to set an icon for the ongoing notification.

We might add a placeholder in a future version, but you likely want to customize it anyway.

saghul avatar Jul 19 '22 06:07 saghul

You need to set an icon for the ongoing notification.

We might add a placeholder in a future version, but you likely want to customize it anyway.

How to do that? There is no doc available to add it from the native SDK

vishnu-simplecrm avatar Jul 19 '22 12:07 vishnu-simplecrm

See https://github.com/jitsi/jitsi-meet-sdk-samples/commit/ad225b08b137794bc55dde291619667d1a2bfd25

It's a resource called ic_notification it used to silently fail but it now crashes.

saghul avatar Jul 19 '22 12:07 saghul

I found the fix, do steps below @tirumalarajajee @vishnu-simplecrm

  1. Right click on res folder in android project and choose image asset from new section
  2. Create icon with following config Name: ic_notification Icon Type: Notification Icons

spidi123q avatar Aug 28 '22 17:08 spidi123q

I found the fix, do steps below @tirumalarajajee @vishnu-simplecrm

1. Right click on res folder in android project and choose image asset from new section

2. Create icon with following config
   Name: `ic_notification`
   Icon Type: `Notification Icons`

This really worked, thank you so much!

NilabhB avatar Oct 21 '22 08:10 NilabhB

I found the fix, do steps below @tirumalarajajee @vishnu-simplecrm

  1. Right click on res folder in android project and choose image asset from new section
  2. Create icon with following config Name: ic_notification Icon Type: Notification Icons

Thanks Man My Error also Fixed

dctesaikat avatar Nov 14 '22 09:11 dctesaikat

2. ic_notification

thanks buddy its worked for me. Fixed

itsVnp avatar Jan 20 '23 06:01 itsVnp

@spidi123q oh my god. thank you very much!!!

vlad909 avatar Feb 19 '23 12:02 vlad909

Am using flutter, how do I create that icon in android studio or vscode @spidi123q @vlad909 @itsVnp Thank you

ndizihiwesimon avatar Mar 26 '23 09:03 ndizihiwesimon

I found the fix, do steps below @tirumalarajajee @vishnu-simplecrm

  1. Right click on res folder in android project and choose image asset from new section
  2. Create icon with following config Name: ic_notification Icon Type: Notification Icons

Amazing it worked Thanks man...

YashSharmaas avatar Apr 01 '23 09:04 YashSharmaas

Am using flutter, how do I create that icon in android studio or vscode @spidi123q @vlad909 @itsVnp Thank you

did you find a solution for flutter?

aqsashaikh88 avatar May 16 '23 09:05 aqsashaikh88

@saghul its works fine after adding ic_notification icon for debug mode but When I do it on release mode or release apk its get crashed and I don't know how to provide any logcat or any error message from release mode

SyedHuzaifaAli-1998 avatar May 16 '23 10:05 SyedHuzaifaAli-1998

Am using flutter, how do I create that icon in android studio or vscode @spidi123q @vlad909 @itsVnp Thank you

did you find a solution for flutter?

Open the project in the file Explore and there you can do it (Like create a new folder in res folder add your desire icon) it will ask for XML format of the image

SyedHuzaifaAli-1998 avatar May 16 '23 11:05 SyedHuzaifaAli-1998

What SDK version are you using? The latest has a placeholder icon.

saghul avatar May 16 '23 11:05 saghul

<uses-sdk tools:overrideLibrary="dev.saibotma.jitsi_meet_wrapper, org.jitsi.meet.sdk, co.apptailor.googlesignin, com.calendarevents, com.reactnativecommunity.asyncstorage, com.reactnativecommunity.netinfo, com.rnimmersive, com.corbt.keepawake, com.BV.LinearGradient, com.horcrux.svg, com.oney.WebRTCModule, com.ocetnik.timer, com.kevinresol.react_native_default_preference, com.learnium.RNDeviceInfo, com.amplitude.reactnative, com.reactnativegooglesignin, com.reactnativecommunity.clipboard, com.swmansion.gesturehandler.react, org.linusu, org.reactnative.maskedview, com.reactnativepagerview, com.oblador.performance, com.swmansion.reanimated, com.th3rdwave.safeareacontext, com.swmansion.rnscreens, com.reactnativecommunity.slider, org.devio.rn.splashscreen, com.brentvatne.react, com.reactnativecommunity.webview"/>

<meta-data android:name="com.gunschu.jitsi_meet_example" android:resource="@mipmap/ic_launcher" />

` defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.CalkTalk" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. minSdkVersion 24 targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName // multiDexEnabled true }

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

// runProguard false

// minifyEnabled true // useProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }`

What SDK version are you using? The latest has a placeholder icon.

SyedHuzaifaAli-1998 avatar May 16 '23 13:05 SyedHuzaifaAli-1998

What ADK version does that wrapper wrap?

saghul avatar May 16 '23 15:05 saghul

From Where I Can Find That I just followed the documentation of it https://pub.dev/packages/jitsi_meet_fix I didn't do anything for iOS I just need to deliver The android right now as soon as possible

SyedHuzaifaAli-1998 avatar May 17 '23 06:05 SyedHuzaifaAli-1998

You need to ask the plugin authors, we didn't write it.

saghul avatar May 17 '23 06:05 saghul