Will Expo notifications work after project is built? - android

I am building a React Native app with Expo, and I am using Expo Notifications.
If I go to build this app on iOS and Android, will Expo Notifications still work on the built app? Or is this something that only works so long as the app runs on Expo?

The short answer is: Yes.
It's just a library after all, and requires installation in both workflows.
It might be worth re-visiting the concepts and architecture of Expo, and understanding how it all works. But I can anecdotally state that it works after build.
Was there a reason you suspected it wouldn't?

In order to get Expo push notifications to work on standalone apps you must follow Expo's documentation here. This will walk you through getting push notifications working on standalone app with Firebase Cloud Messaging.
NOTE: FCM is not currently available for Expo iOS apps.

Related

How to get Push Notification using React Native to support Android & IOS

I'd like to develop a simple mobile application for both Android and IOS, the core part of the app being push notifications.
I started using React Native, with Expo, to easily support both Android & IOS. But while approaching to push notifications I ran in multiple problems, lots of out dated contents and documentations.
I tried using Firebase Messaging but in the documentation the are some confiugurations regarding platform specific files, which i don't have in the project. I tried putting some stuff (such as package name) manually in the app.json but it didn't work in the end.
I tried Expo's push notification service but for some reason i can't even get the token (testing on a physical device) from the example code in the documentation
Reading some pages of the Firebase docs seems that using react-native-firebase should easily work for both plaforms, but in other pages it seems to be platform dependant.
If you happened to use push notifications for both android & ios, is it possible to do it in only one project using React Native and Expo? If so do you have some documentation that happened to work for you?
Thanks.

How to set push notifications in android/ios with vue js?

I am trying to set up the firebase-cloud-messaging to display notifications to users. Using the web notification, everything works as intended.
However, I also want to send them via app, but apps don't recognize service-workers yet.
I couldn't wrap my head around it. How to use vue.js android/ios apps to receive push notifications? Should I use plugins? If yes, which plugins? Currently using quasar, Vue.js, FCM.
You can actually get push notifications to web and Android via vue cli setup for PWA, out of the box - iOS is the lone holdout on PWAs acting like PWAs on their devices. So, for iOS only, you'll need to create a developers account on Apple and pay $99/yr, plus 20% or 30% on all revenue on purchases...though there might be a way around that but I think that gap has been closed via recent TOS updates from Apple...for more see Netflix and WordPress issues with native apps on iOS and the fight with apple. WP being the most recent.
Pick your choice of native app building bundles, there's React native, nativescript vue, vue-native, expo and probably a few dozen more out there.
From there check the docs. Firebase has great documentation, other packages above have great documentation and they all follow a similar path since iOS has the hoops you have to jump through to get things to build.
Firebase Docs
Nativescript Docs
Push Notifications on Expo

What is the most reliable way to implement push notifications for React Native on Android and iOS

I'm setting up push notifications in a React Native app for android and ios, I've been using react-native-push-notifications and PushNotificationsIOS from react-native (I tried the react community package first, but was having troubles with my app building). Just wondering from experience, what the best way to implement it would be?
EDIT:
Forgot to mention that this is for local notifications, I have got remote notifications working with app center
Different people have different opinions on this. I will share my opinion based on my experience.
Have a look at React Native Firebase (Please note that V6.0.0 does not support notification, do use V5.x.x)
The package is well documented and easy to integrate for both IOS and Android.
React Native Firebase
If you are using React Native 0.60+, then this page will be helpful for you.

will using Expo worst in react native?

I am new in react native. when i create react native app by :create-react-native-app My project name the project will create with some thing named Expo in it directory.
then when i run it in emulator it will running by expo and i having to see an app named Expo and i have to run my app by using that. Ok?
i did many search a bout Expo and saw that site, and many other sites and notes which were about Expo but i understood nothing, just Expo will make it Easy to run your app.
now i want to ask: if i use expo; will my clients have to use that for running my app on their devices??
and ask: will i have to pay money for some essential things in future ?(Given that i never want to pay any thing )
will Expo make my application depending on himself(Expo) and prevent me to use various APIs like google map or ?
and in last: using that or not? which way is more professional?
Firstly, welcome to the React Native community!
Most of these questions can be answered in the Expo FAQ
if i use expo; will my clients have to use that for running my app on their devices??
You can at any time detach your app from expo and publish it to the App Store or Android Play Store.
will i have to pay money for some essential things in future ?(Given that i never want to pay any thing )
From the expo FAQ page: "Expo is free.
Our plan is to keep it this way indefinitely.
Expo is also open source, so you don’t have to trust us to stick to that plan.
We might eventually charge money for services built on top of Expo or for some kind of premium level of support and consulting."
will Expo make my application depending on himself(Expo) and prevent me to use various APIs like google map or ?
Assuming you are talking about Native Modules.
Expo provides a very large API for building a native app.
Some known reasons you might detach are:
Using a companies Proprietary internal native API
Unsupported libraries like React Native Fetch Blob - this is currently being added to React Native but until then it is not available in Expo
If you do need to add custom Native Modules, you could always detach from expo. When you Detach you will get an ios, and a android project.
Lastly you could always recommend new features: https://expo.canny.io/feature-requests
and in last: using that or not? which way is more professional?
Using Expo will provide you with tested Native Modules on top of React Native, if anything this makes it more professional.
Here are some popular apps constructed with React Native.

React native notifications

I am working on a react-native project (using CRNA) and am to the point where I want to develop push notifications for various features. Does anyone have any suggestions on what library I should use. I've been told that it is typically something rather difficult to get up and running so some light-weight out of the box solution would be great. BTW, I am using Expo for dev environment. Thanks!
If you are using Expo I think push-notifications are already configured. Otherwise I suggest using react-native-fcm. It's easy to implement, it works fine in my project both for Android and iOS. I tried other libraries but only this one worked for me.

Categories

Resources