React Native Expo Notifications When App is Killed - javascript

So i have an expo react native app and i am using the expo-notifications and when i press a push notification, i receive some data from it with a certain url and i redirect the user based on that url. It works when the app is in background or opened but when i kill the app and tap the notification, it opens the app, but i do not receive any data from the notification. This is happening after i build the standalone app. Weird is that in expo app is working fine, but when i build the apk for example and install it on my phone, it's not working. Can anyone maybe please help me with this? I have already spent a lot of days searching for a solution and nothing works.
Thank you!
What I expect is that when the app is completely killed and i receive a notification, to have access to that data that the notification contains and do something with it.

Related

How can I link Firebase auth Android app and web app?

I have two projects a web app and an Android app and I want to link them together. I have Firebase auth set up on the Android app (user app) and I want the admin web application to link the auth account as 2 way (admin and user). Is that possible? If it is, can you explain how?
Is that possible?
For sure it's possible. This can be simply done inside the Firebase console. Once you have successfully created your project, then you'll be able to add as many apps as you need. Since you have a web and an Android app, you should go to "Project settings" and hit the blue Add app button. The first time you should create the web app and the second time, the Android app. How? Simply follow the instructions that are provided. There are only 2 steps in the case of a web app, and four in the case of an Android app.

React native Expo intent open app passing parameters

I have to make sure to open an app, which is installed on the device by passing the parameters.
The application in this case is firefox.
I found something like that but I don't know if it can help me: Link
I found this on Expo but I don't know if it does what I'm looking for:
Expo
Some advice?

Push notifications using React-Native

We are developing a mobile application that a user can register and subscribe with a monthly fee, the main function of the app is to notify the users just like messaging app. The notification will be coming from the admin dashboard. Anyone could advise us how to Push Notifications in real time to users both ios and android. We are using React-Native. Thank you in advance!
Here's a pretty popular GitHub repository for creating a notification system with React Native: https://github.com/zo0r/react-native-push-notification. It has support for both iOS and Android, however, it seems like Android may take more installation effort because it isn't supported by the React Native developers. I would recommend taking an hour or two following the installation instructions, trying it out, and seeing if it is right for your app.
Hope this helps!

How to know if web app and executable app both are active at same time

I have a web app something like slack which is used for chatting and when user is offline then we send the notification that "you have a new message". The notification is html5 push notification, so it works when user has not opened web app.
I have recently created an executable app for people who chat all day. But problem is that when a new message is coming : notification coming from exe app and browser both.
So my question is : Can we find if web app and exe app both are active in one device? So that we can supress one of the notification. Does a pc have something like common id which we can access from javascript in browser and executable too?
Note :- I have information stored in server that web app is active and exe is active, i only need to find if they are from same device.
Thanks in advance. Please let me know your solution.
After a lot of hit and trial with different solutions - I found a solution.
I am embedding a http server in the exe app which let me communicate with web app. In the web app, i have added a web worker, which will ping the exe app server every 10 sec. If response received means exe app is active, then i turn off the notification on server by calling api. This will also make sure when the exe app is quitted, web worker wont get any response means exe is not active, so it activates the notification.
Now another issue was that - after installing the app, user didn't open the web app and he is getting two notification still. For overcoming this - i open the web app url when the exe app starts for the first time and it detects the status and turn off the browser notification. In the same process - i also save the browserId (a unique guid to identify the browser ) to the exe app and whenever exe app starts, i call the api to turn off the notification for these browserId.
Hope this helps someone.

Not Receiving Push Notification when app is killed on android device

I am currently working with RN0.44 , everything working fine on emulator , however on physical android device i am only able to receive push notification (remote) when app is running or at least it is in background, but when i kill the app i am unable to receive notifications.
I have also checked the settings for my app but no luck.
I am using this package react-native-notifications
I have also raised an issue at github
Any help is appreciated.

Categories