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

Not working on last version of React Native #159

Open
jaimebiernaski opened this issue Nov 24, 2021 · 5 comments
Open

Not working on last version of React Native #159

jaimebiernaski opened this issue Nov 24, 2021 · 5 comments

Comments

@jaimebiernaski
Copy link

jaimebiernaski commented Nov 24, 2021

Hi,

I'm unable to get it working on a brand new RN project

  1. Create a empty project with npx react-native init alert
  2. Follow the these steps, including the changes on the native code.
  3. Copy the exact same code from the /example/App.js

Expected result:

The library should works as in the provide example.

Current result:

The lib didn't work as expected. The notification is not fired, the sound not played and the banner does not appear.

// package.json
...
"dependencies": {
    "react": "17.0.2",
    "react-native": "0.66.3",
    "react-native-alarm-notification": "^1.8.0"
  },
...  
  
// build.gradle
...
buildscript {
    ext {
        buildToolsVersion = "30.0.2"
        minSdkVersion = 21
        compileSdkVersion = 30
        targetSdkVersion = 30
        ndkVersion = "21.4.7075529"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:4.2.2")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
...
@k2an
Copy link

k2an commented Dec 4, 2021

+1 same on last version of RN

@tmbax0098
Copy link

The lib didn't work as expected.
The notification is not fired,
the sound played and
the banner does not appear.

@yoursinger
Copy link

yoursinger commented Mar 4, 2022

I'm having another problem. The upgraded rn prompts this:
A problem occurred configuring project ':react-native-alarm-notification'. com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

@Tonisg91
Copy link

I'm having another problem. The upgraded rn prompts this: A problem occurred configuring project ':react-native-alarm-notification'. com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

Hello! I'm having the same problem. Did you finally solve it?

@ayberkanilatsiz
Copy link

@Tonisg91 @yoursinger you can change react-native-alarm-notification build grade like this:

https://gist.github.com/ayberkanilatsiz/4e0672c0f9e02bd9a0aae7ea5ca88e8d

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

6 participants