Not Receiving Push Notification when app is killed on android device - javascript

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.

Related

React Native Expo Notifications When App is Killed

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.

Nativescript Pusher on iOS

I have successfully configured Pusher on Android which was straight forward.
on iOS, I configured and got a p8 key for APNS. In Pusher dashboard, I entered the key and the Team ID and ran the app on a physical iOS device, subscribed to "hello" interest.
The result of "UIApplication.sharedApplication.registeredForRemoteNotifications" is true which technically means that it had successfully registered for remote notifications but it's not applied on Pusher dashboard, it keeps saying "Waiting For Device".
Any help would be much appreciated. I'm running out of options here :/

Device not registered in pushwoosh

I am using the pushwoosh to register the device via my trigger.io app.
This is my device registration code
I will trigger this code everytime my app starts.
According to the documentation, I need to define the code differently for IOS and Android, hence the 2 lines. (Not sure if it is correct).
However after I run the app and register a new user on IOS, the subscriber count in my pushwoosh did not seem to increase.
I have already uploaded the relevant apple certs and apns p12 files in pushwoosh.
IOS platform configuration page in pushwoosh
IOS platform device count did not increase after I start the app of a new user.
Does anyone know if there is any missing setup I need to do?
Issue seemed to have been resolved after I created a new application in pushwoosh.

cordova keep socket.io running in background with ussing batery

Im developing a cordova APP for Android, the APP uses socket.io to connect to a node server and send and receive notifications from the server, like wassap APP.
Wehn i set the APP in the background, my socket close the connection, but setting in the config.xml allow me to get the APP running in background.
But, if I unplug the USB from the phone, the socket close after the 10 seconds (my server pingTimeout config) if the APP are in background mode.
Im looking for inbo about APP dont keep running in background using the Batery, but dont found nothing.
Someone expect these problem? Im Using Apache Cordova 5.3.3

How to debug push notifications for IOS?

I have setup ionic push for Android and IOS, the android version works great, but the IOS doesn't.
I have setup the provisioning and certificate files on IOS and they seem to be fine.
Also, the tokens get generated fine, and if i do a test with ionic push -s or CURL i can see the request going through with no errors that i can tell, just that the notifications don't show on the device.
I made the IOS package using the Phonegap Build service, not sure if that's an issue.
So, i guess my question is if there is a way for me to debug and figure out what went wrong.
Any ideas?
I also suffered a lot in push notification.
Finally i got some solution. it might be helpful for you
If u get device token from APNS server and notification send without any error but still you not getting notification in device then problem is in certificate.
Useful Links:
1) For Troubleshooting Push Notifications is here
2) Tutorial for generating generating certificate and send push notification is Here

Categories