Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 13 App crashes - RN 0.68 #94

Open
1 of 2 tasks
alejodelosrios opened this issue Aug 29, 2023 · 11 comments
Open
1 of 2 tasks

Android 13 App crashes - RN 0.68 #94

alejodelosrios opened this issue Aug 29, 2023 · 11 comments
Assignees

Comments

@alejodelosrios
Copy link

alejodelosrios commented Aug 29, 2023

Platform

  • iOS
  • Android

Description
Every time you try to change the icon, app crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Use changeIcon('IconName') or resetIcon() methods

Expected behavior
The app crashes but the icon is changed.

Device (please complete the following information):

  • Device: Samsung Galaxy A32
  • OS: Android 13

Versions

  • react-native: 0.68
  • react-native-change-icon: 5.0

Code Snippet
if (appIcon !== newIcon) {
await changeIcon(newIcon);
}

@mayyas-nakhli
Copy link

I have the same problem.
Any solution?

Device:

  • Device: sdk_gphone64_x86_64 (Simulator)
  • OS: Android 14.

Versions:

  • "react-native": "0.67.2"
  • "react-native-change-icon": "^5.0.0"

@haydncomley
Copy link
Collaborator

Sounds interesting - I can take a look for you over the weekend and see what's wrong :)

@haydncomley haydncomley self-assigned this Sep 1, 2023
@DeveloperEstiven
Copy link

the same here, "react-native": "0.71.11"

@maxinminax
Copy link

maxinminax commented Sep 29, 2023

`FATAL EXCEPTION: main

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.dispatchDetachedFromWindow()' on a null object reference`

I have a same issue with "react-native": "0.72.4"

@hibittushah
Copy link

I have the same problem with "react-native": "^0.70.6" in android .
App icon changes but application is crashing and showing two apps with different different icon on home screen .
Any solution please .

@maxymczech
Copy link

For me, on [email protected], the app does not crash, but every time I call changeIcon, instead of changing app icon it creates new shortcut for my app.

@yasaricli
Copy link

+1

@Beardless
Copy link

It is also failing for me RN version 0.72.7. Does anyone know other lib that work for android?

@dineshnadimpalli
Copy link

For me, on [email protected], the app does not crash, but every time I call changeIcon, instead of changing app icon it creates new shortcut for my app.

@maxymczech try comparing your AndroidManifest.xml with the example one from

@quattrorx7
Copy link

quattrorx7 commented Feb 27, 2024

Hi. If I'm removing LAUNCHER from MainActivity intent filter I get the following error, does anyone have same issue?

Main activity not found in appName/android/app/src/main/AndroidManifest.xml

P.S. I got RN 0.73

@Navicna
Copy link

Navicna commented Sep 16, 2024

For me, on [email protected], the app does not crash, but every time I call changeIcon, instead of changing app icon it creates new shortcut for my app.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests