Simple Push Notification Firebase Cordova Plugin
HTML-код
- Опубликовано: 27 дек 2016
- Steps simple notification :
1. Create project cordova
2. Create Project firebase - console.firebase.google.com/
3. Download google-services.json
4. Copy google-services.json to root project cordova
5. Add plugin cordova-plugin-firebase - github.com/arnesson/cordova-p...
6. Add platform android
7. Send notification from console firebase
8. Done
Next video :
- Get id token and push to specific devices
- Push from server with curl php
Thanks a lot! I've watched others videos but never have success in to do it work.
Perfectly okay. Great tutorial. Thank you so much...
awesome! what i looking is in here!!
waiting for next video!!
Thank you for watching this video
Hey, this helped and it's very simple, thanks a lot.
Great job, it works perfectly
Thank you sooooooo much Sir, Allah blesses you
By now (2020, jan) you can substitute cordova-plugin-firebase by cordova-plugin-firebasex.
I just tried this process after not being able of integrating cordova-plugin-firebasex in a existing application, just to test the process and it worked perfectly.
matur suwun tutorial nya mas'e
excelente !! funciono a la primera ,
Worked for me, thanks
Nice tutorial bro. Salam dari Semarang
Thank you.
Keep up the good work !
Thank you for watching this video
Funcionou de primeira aqui.
thanks
@ABSystem Solo -
update for version 0.1.22 is not getting token from device.. Please help to fix.
Running hook to copy any available google-services.json file to Android
[TypeError: Cannot read property 'current_key' of undefined]
send message when i try on --emulator it's alert App has stopped but try on --device... it can function!! maybe old version not working or if run in --emulator
Thanks! how do you create an avd?
Hi, how to add build.gradle??, minute 1:25. I am use apache cordova please helpme!!
Can you make same tutorial for ios please?
does this work even if i close the app ?
what cordova and android version are you using?
i didn't get notifications and tried to get token but its empty
Hi! could you help me? i have troubles when i try to get device token. can you share me part of code how i can use this plugin function and override it's body? thank you
Maybe my second tutorial can a little help you
Notification is not received in mobile
After I send the notification my application closes. What happens?
not working for me, "unfortunately, App has stopped"
its not working now
como seria usando phonegap build?
saya kedapatan error seperti ini :
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 48.478 secs
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Kira kira bagaimana cara fix nya ?
I tryed to build the app with "cordova build android", installed it in my physical device, started and it doesn't' recieve any notifications ...
I think there was another step to this, which was his actual app, he didn't tell us the code he entered into it.
actualy, it started working :) thx anyway
My second tutorial using real device & work
same is happening with me, how did it work ????
Hi, pls, give me the link of your second tutorial
my project used to successfully build android apk, but after installing cordova plugin and adding google json file it has started producing this error on android build -
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find any matches for com.google.firebase:firebase-core:+ as no versions of com.google.firebase:firebase-core
are available.
Required by:
:android:unspecified
> Could not find any matches for com.google.firebase:firebase-messaging:+ as no versions of com.google.firebase:firebase-
messaging are available.
Required by:
:android:unspecified
> Could not find any matches for com.google.firebase:firebase-crash:+ as no versions of com.google.firebase:firebase-cras
h are available.
Required by:
:android:unspecified
> Could not find any matches for com.google.firebase:firebase-config:+ as no versions of com.google.firebase:firebase-con
fig are available.
Required by:
:android:unspecified
try ionic state reset
I too faced this issue. Got fixed by uninstalling the plugin and reinstalling it and creating a build.
tengo un error...
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugResources'.
> Error: Failed to crunch file C:\Users\Ing. Adrian Castillo\Desktop\Mis archivos\Android\pushnotification\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.2
es\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png into C:\Users\Ing. Adrian Castillo\Desktop\Mis archivos\Android\pushnotification\platforms\android\build\intermediates
es\merged\debug\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
cambia de ubicación la carpeta del proyecto, tu ruta parece tener caracteres especiales, yo lo puse en C:| y funciono bien
How to track clicked notification?
i diidnt get notification on emulator
I am unable to get notifications when application is closed.
Help required.
did you find any solution?
unfortunately, didn't work for me.
First time... not worked... than i erase all... and recreate with one diferent step...
cordova plugin add github.com/arnesson/cordova-plugin-firebase
than... this time work! :-)
Dont work whit PhoneGap Cordova
Dont work whit PhoneGap and Cordoba
in 2020 not work
Hola excelente tu video, yo tengo mi app hecha en ionic 1 y servidor con laravel 5.1, no he podido enviar las notificaciones desde mi servidor... me podrias ayudar ??? Muchas Gracias ...
Kenapa gak jalan ya bro?
This tutorial was incomplete I think, so many errors I got
what nonsens this sound
music is so stupid!
Notification is not received in mobile