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] getInitialNotification returns null with apk install #414

Closed
fenyoapa opened this issue Nov 23, 2019 · 5 comments
Closed

[ANDROID] getInitialNotification returns null with apk install #414

fenyoapa opened this issue Nov 23, 2019 · 5 comments

Comments

@fenyoapa
Copy link

PendingNotifications.getInitialNotification() works fine in dev mode (react-native run-android) but returns null if I install my project's apk (gradlew assembleRelease) and the app is in background/killed and I tap on a notification.
I use NotificationsAndroid.localNotification to create the notification which is triggered by a websocket call (I don't know if it matters).
I don't use Firebase.
There is also a splash screen created by this tutorial: https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae.
I'm googling for many days but can't get it work.
I tried (with others) these answers:
invertase/react-native-firebase#1331
#326 (comment)
crazycodeboy/react-native-splash-screen#289 (comment)

react-native: 0.60.4
React.version: 16.8.6

MainActivity.java.txt

MainApplication.java.txt

SplashActivity.java.txt

AndroidManifest.xml.txt

Have somebody any idea?
Thank you

@spaquis
Copy link

spaquis commented Dec 21, 2019

Same problem here. It also doesn't work in dev mode=> Initial notification was: N/A
Did you find a solution ?

@fenyoapa
Copy link
Author

Yes I solved it but I don't remember what was it exactly. I attached relevant files so you can compare it with yours
myapp.zip
. Let me know if this solve the problem for you.

@spaquis
Copy link

spaquis commented Dec 23, 2019

Thanks for sharing but i didn't manage to solve this problem with your sample :(. I use react native firebase v6. I create an issue #428.

@stale
Copy link

stale bot commented Jan 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the 🏚 stale label Jan 22, 2020
@stale
Copy link

stale bot commented Jan 30, 2020

The issue has been closed for inactivity.

@stale stale bot closed this as completed Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants