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

RN 0.29 needs Activity instance? #65

Open
spacesuitdiver opened this issue Jul 6, 2016 · 3 comments
Open

RN 0.29 needs Activity instance? #65

spacesuitdiver opened this issue Jul 6, 2016 · 3 comments

Comments

@spacesuitdiver
Copy link

I can't use new NotificationPackage(this) with 0.29 as MainActivity.java stuff was moved to MainApplication.java so I'm not sure how to get an instance of Activity.

@leoabacade
Copy link

same here

got this error:

screen shot 2016-07-13 at 11 04 52 am

"dependencies": {
"react-native": "^0.29.0",
"react-native-gcm-android": "^0.2.0",
"react-native-system-notification": "^0.1.11",
}

@leoabacade
Copy link

still get the error

node_modules/react-native-gcm-android/android/src/main/java/com/oney/gcm/BackgroundService.java:34: error: constructor NotificationPackage in class NotificationPackage cannot be applied to given types;
                .addPackage(new NotificationPackage(null))
                            ^
  required: no arguments
  found: <null>
  reason: actual and formal argument lists differ in length
1 error
:RNGcmAndroid:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

"dependencies": {
"react-native": "^0.33.0",
"react-native-gcm-android": "^0.2.0",
"react-native-system-notification": "^0.2.1"
}

@leoabacade
Copy link

leoabacade commented Oct 3, 2016

ok, I switch to react-native-push-notification
[https://github.com/zo0r/react-native-push-notification]

it supports "react-native": "^0.33.0",

you need to manually linking the react-native-system-notification, but it is pretty straightforward.
[https://github.com/neson/react-native-system-notification]

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