Push Notification for Android and iOS using ReactNative - android

Can anyone please help to guide on the implementation of pushNotification on cross platform (Android and ios ) using React Native.

Use following library to implement push notification. https://github.com/zo0r/react-native-push-notification. Also there are more library available to implement push notification.

If you are using expo for your react-native project this is a quite good starting point.
https://snack.expo.io/ry526Qu3e
They also have a larger guide at this link Push Notifications

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.

Will Expo notifications work after project is built?

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.

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.

push notification with custom icon

I w'd like to know is there any way to send push notification with different icon than app's. I'm using Unity Parse SDK and able to send push notifications for both Android and iOS. Thanks for any suggestions!
Yes it's possible. You need to write a Unity3d plugin for your specific mobile platform.
Read the official unity3d manual for:
Android: Building Plugins for Android
iOS: Building Plugins for iOS
You need those plugins to call platform specific functions.

Appcelerator Titanium C2DM

Anyone tried out Titanium c2dm for android?I am using Titanium version 1.8.1 And i want to do small Push notification Using C2DM server.If anyone Implemented help me!Thank U
#Sugan.s Titanium has direct access to Urban Airship which supports push notifications to Android, Blackberry, and iOS. It's the most recommended, and easiest approach to Push notifications within Ti.
As suggested already, Parse is another great resource.

Categories

Resources