Aprendendo a usar notificações Push com o Firebase Cloud Messaging

Overview

Notificações Push com Firebase

Esse projeto foi desenvolvido com base no curso "Flutter: Push notifications com Firebase Cloud Messaging", da Alura.

Para acessá-lo, clique no link https://www.alura.com.br/curso-online-flutter-push-notifications-firebase-cloud-messaging

Resumo do curso

  • Aprenda o que são notificações de push
  • Aprenda o que é Firebase Cloud Messaging
  • Descubra como tratar o recebimento das notificações, sendo elas em primeiro ou segundo plano
  • Veja como podemos aproveitar os recursos que temos para personalizar cupons de desconto com Push
  • Entenda como é possível configurar notificações em aplicações android e web criadas com Flutter
  • Veja como configurar o Firebase Core e o Firebase Cloud Messaging em uma aplicação Flutter
  • Aprenda como tratar as permissões necessárias para o recebimento de notificações
  • Descubra como manipular o token obtido para o envio e recebimento de notificações

Inicialização da aplicação web

Ao baixar a aplicação web, extraia o arquivo server.jar em um local de sua preferência. Então, acesse via prompt de comando ou terminal o local onde o arquivo foi extraído.

Execute o arquivo usando o comando java -jar server.jar. Após a execução, caso não haja problemas, deve ser apresentada uma mensagem indicando que a aplicação foi inicializada e também a porta onde ela está disponível.

Se apresentar algum problema na execução, verifique a mensagem e tente identificar o problema. Os problemas mais comuns são:

Versão do Java: aplicação com a versão do Java a partir da 8. Porta de execução não disponível: pode haver uma aplicação usando a porta 8080. Você pode derrubar a outra aplicação ou mudar a porta de execução usando a instrução java -jar server.jar --server.port=8081

App Flutter

Para o app Flutter, extraia o arquivo e abra no Android Studio (ou editor/IDE que preferir), baixe o arquivo do google-services.json no Firebase console e adicione-o na pasta Android/App.

Ao projeto no Firebase, precisamos adicionar um app com o pacote br.com.alura.meetups.

Feito isso, modifique o endereço da URL base dentro do arquivo web.dart pelo endereço IP da sua máquina, por exemplo http://seu_ip/api/. Pelo prompt, você pode buscar usando o comando ipconfig e pelo terminal ifconfig.

You might also like...

Dota 2 App using Firebase and Google Cloud

Dota 2 App using Firebase and Google Cloud

Dota 2 App using Firebase and Google Cloud This is a pet project that born with the idea of having a nice subject to go through some Live Coding sessi

Dec 15, 2022

A cached Flutter ImageProvider for Firebase Cloud Storage image objects

🔥 Firebase Image Provider A cached Flutter ImageProvider for Firebase Cloud Sto

Nov 2, 2022

Gcloud-flutter-dota-app - Dota 2 App using Firebase and Google Cloud

Gcloud-flutter-dota-app - Dota 2 App using Firebase and Google Cloud

Dota 2 App using Firebase and Google Cloud This is a pet project that born with the idea of having a nice subject to go through some Live Coding sessi

Dec 15, 2022

Notey - A noteApp build using flutter with firebase cloud firestore

Notey - A noteApp build using flutter with firebase cloud firestore

notey A project to create and store notes for later purposes. Notey is built usi

Aug 14, 2022

Push Notification service for anime episodes and news. The episode updates will be based on actual upload on the internet and NOT Japan tv schedule as other apps do.

Push Notification service for anime episodes and news. The episode updates will be based on actual upload on the internet and NOT Japan tv schedule as other apps do.

Quantz Push Notification service for anime episodes and news. Features Sub and dub - get notified with latest anime episodes on the internet. Ongoing

Nov 21, 2022

Flutter Dropdown Alert help to notify to user when success, warning or error like push notification

Flutter Dropdown Alert help to notify to user when success, warning or error like push notification

flutter_dropdown_alert A dropdown alert package for flutter Dropdown alert will help to notify to user when you call api success, error or something l

Dec 17, 2022

Flutter Push Notifications

Flutter Push Notifications

Flutter Push Notifications Flutter applications implementing push notifications.

Oct 17, 2022

Sticker chat is a messaging application built using Flutter, Stream, and Rive

Sticker chat is a messaging application built using Flutter, Stream, and Rive

Sticker Chat 💬 Sticker chat is a messaging application built using Flutter, Stream, and Rive. It allows users to send and receive messages in real-ti

Nov 23, 2022

Chat Messaging App Light and Dark Theme

Chat Messaging App Light and Dark Theme

Chat/Messaging App Light and Dark Theme - Flutter UI Watch it on YouTube Complete Source Code (Patreon only) Packages we are using: goole_fonts: link

Jan 6, 2023
Owner
Roger Bernardo De Melo Lima
Torre forte é o nome do SENHOR, à qual o justo de acolhe e está seguro.
Roger Bernardo De Melo Lima
Awesome Notifications add-on plugin to enable push notifications through Firebase Cloud Messaging with all awesome notifications features.

Awesome Notifications FCM Awesome Notifications add-on to send push notifications using FCM (Firebase Cloud Messaging), with all awesome notifications

Rafael Setragni 8 Jan 4, 2023
Arissendpushntfctns - Send Push notifications with Flutter and Firebase messaging II

Push notifications with Firebase messaging II Send push notifications on Android

Behruz Hurramov 6 Feb 11, 2022
Build an example app for receiving notification from Firebase Cloud Messaging (FCM)

notify Build an app demo for receiving notifications from Firebase Cloud Messaging. Check more information: https://firebase.google.com/docs/cloud-mes

TAD 3 Dec 9, 2022
Push notification in Flutter using Firebase.

push_notification [1]Firebase Integration in Flutter project. [2]Parsing message in the app using on Message Stream while the app is foreground. [3]Ha

hebaabdelwhab 2 Dec 29, 2021
Plugin to implement APNS push notifications on iOS and Firebase on Android.

apns Plugin to implement APNS push notifications on iOS and Firebase on Android. Why this plugin was made? Currently, the only available push notifica

null 0 May 14, 2022
Send notification to flutter app using firebase messaging

Welcome Push Notification with Flutter & Firebase ⚠️ ⚠️ there is no google-services.json file attached in this project because of security issues, you

Dineth Siriwardana 1 Aug 28, 2022
Project demonstrates building a simple chat application using Flutter framework and Firebase cloud

Flutter Chat on Firebase Project demonstrates building a simple chat application using Flutter framework and Firebase cloud. App does not poll for new

Sukitha Udugamasooriya 8 Feb 2, 2022
The prime objective of this app is to store the real time information of the user using firebase cloud firestore and also can delete, remove and update the customer information

crud_firestore A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started i

Muhammad Zakariya 0 Mar 15, 2022
A font loader to download, cache and load web fonts in flutter with support for Firebase Cloud Storage.

Dynamic Cached Fonts A simple, easy to use yet customizable font loader to use web fonts. Demo: https://sidrao2006.github.io/dynamic_cached_fonts ?? I

Aneesh Rao 18 Dec 21, 2022
A Flutter application that demonstrate simple CRUD operations with Firebase cloud database.

Cricket Team A Flutter application that demonstrate simple CRUD operations with Firebase cloud database. Preview Home Empty Swipe Add Player Update Pl

Bhavik Makwana 45 Jun 19, 2021