I'm developing a Messenger/Call app in React Native. Users can call each other. When all users are online there is no problem but when users go offline (close their app) they won't recognize calls. I need to run a service which listens to a specific types of message pushed by server.
I want to publish call signals by google GSM. (I can't use Firebase for some reasons)
Is there any library which I can use it or I have to define my own native module and Link it to React Native?
Related
As part of a school project I am working on, I am trying to build a messaging app that utilizes SMS as the default method for sending and receiving SMS without redirecting to the default SMS Messaging App of the device (ie sending/receiving an SMS for my app without redirecting to the Messages app on the iPhone). but I haven't found anything that can be used to achieve this.
PS: One of the requirements of the projects is not using any external library, except for the things provided with Expo,
You will have to use an external library. That feature isnt build in react Native
One external Library would be "https://www.npmjs.com/package/react-native-sms"
The only option you have if you really dont want to use external librarys is, to write your own function, which communicates with the native API
I wanted to build an app which can send notifications to the user if he uses a particular app for more than 15 minutes...for this I need to trace which app the user is using even when my react native app is not being used(i.e. it is present in the background). Is there any react native library which can help me to know the app which the user is using in the present?
There's no way to do this. Your app would have to be running in the background at all times, and even then the OS would have to support such a feature.
I am building a new application in React Native and I built an API for the back-end.
I want to build in a push notification in the app when there is a new entry delivered by the API. I saw a framework that background fetches an API route and then shows a push notification but this only applies ones every 15 minutes. Other push notifications tutorials I see only work with a firebase database and I need it to work with my API.
Is somebody known with combining rest api's with push notifications in react native, that can help me?
Greetings,
Laurens
step 1:- first you need to add react-native-firebase, messaging in your react-native project for receiving push notification.
link to add react-native-firebase
step 2 :- check your application setup using firebase console's
Cloud Messaging service.
https://console.firebase.google.com/project/fir-demo-f375c/notification
if your application setup is perfect you will get push notification in device from firebase console's Cloud Messaging service.
step 3:- need to add server side code to fire push notification from server,
when your api hites to using server language like PHP.
for more detail in step 3 follow
https://firebase.google.com/docs/cloud-messaging/server#implementing-http-connection-server-protocol
Functionality: Send a connection/friend request to another user of the same app built on react native
Can anyone please suggest how do I code this functionality
You are trying to make a social app. Rather than sending in-app notifications and friend requests , you should structure your app properly about how the requests flow will be processed via backend. That's how facebook , instagram does , they have their servers for each functionality and upon click of any request buttons in the app ,those api's are called and respective friend requests are sent to the user. So structure your code-architecture first.
Do find the link below , it may help you
React native social app
I want my react native app to detect when Google Maps app is open to show some travel tip. Is it possible?
You can not detect if another app is launched for security reasons. Installed apps canĀ“t listen another apps because they are "sandboxed".
You can only interact with another apps opening it throught your app by Deeplinking or detecting if is or not installed.
It's not a limitation of React Native. All iOS applications cannot access other applications, except to open it or share some resources.