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

App crashes when requesting permission on android #396

Open
ToniLloyds opened this issue Feb 2, 2022 · 2 comments
Open

App crashes when requesting permission on android #396

ToniLloyds opened this issue Feb 2, 2022 · 2 comments

Comments

@ToniLloyds
Copy link

ToniLloyds commented Feb 2, 2022

Environment

Device: Pixel 5 - Android 11

react-native-calendar-events : 2.2.0

react-native info

System:
OS: macOS 12.0.1
CPU: (8) arm64 Apple M1
Memory: 95.28 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.5.0 - ~/.nvm/versions/node/v16.5.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.5.0/bin/yarn
npm: 7.19.1 - ~/.nvm/versions/node/v16.5.0/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 28, 29, 30, 31, 32
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0
System Images: android-30 | ARM 64 v8a, android-30 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7935034
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_312 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to Reproduce

  const handleAddToCalendar = async () => {
    if (calendarPermission !== "authorized") {
      try {
        const authorizationStatus = await RNCalendarEvents.requestPermissions(
          false
        );
    ...

Expected Behavior

It should ask user for permission using native android modal

Actual Behavior

1 second after opening modal app crashes

Logcat

E/unknown:ReactNative: Tried to remove non-existent frame callback

All described above happens only first time after installing fresh app.
After the crash i can run app again and it works...

@ToniLloyds
Copy link
Author

ToniLloyds commented Feb 2, 2022

From what i found out this has something to do with react-native-change-icon package that we use

@tmitchmachine
Copy link

@ToniLloyds Yeah I also have the same issue. Were you able to fix it?

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

2 participants