-
Notifications
You must be signed in to change notification settings - Fork 76
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
Undefined GcmAndroid.launchNotification when receiving notification when app is closed (not in foreground/background) #30
Comments
Please give me some code snippets of |
I'm currently using snippets from the example to just try to get it to work (see below). Note that I've already registered my token with my server (not shown here), and am using this example page as a reduced repro case for myself.
|
Weird.... Can you try the demo project? |
So, it's working now, but I am not certain of the culprit. The demo worked as advertised. Even though last night's version bump wasn't really relevant here, I decided to upgrade this plugin for my project just to get parity with the demo project. Then, after restarting the phone and ensuring that the react native packager was fresh, it just worked. So unfortunately, I don't have a great rationale to contribute here. I'll definitely update here if I find anything, but otherwise, thanks for your quick attention and pointer to try out the demo project! Log (note the unreferenced classes and notification builder issues are still here, so likely irrelevant):
|
Restarting everything may solve the problem sometimes when developing React Native app. 😩 |
Hello!
Thanks for the plugin! Having trouble getting the launchNotification come through successfully. There are a number of red flags in the logs, but I'm not sure how to proceed. The notification seems to go through some trouble around "setLocalOnly" and "setColor" on my device on 4.4.4. It also seems to have some trouble referencing some classes (might be unrelated). Would love your guidance on the matter.
Note that notifications all work smoothly when the app is in the foreground and background.
Thanks in advance!
Logs:
app/build.gradle dependencies:
versions:
The text was updated successfully, but these errors were encountered: