Questions tagged [android-push-notification]
252 questions
0
votes
0 answers
Error when sending notifications using Firebase in Kotlin?
I am trying to send notifications using Firebase, but I am getting the following error.
Following is my FirebaseService.kt
private const val CHANNEL_ID = "my_channel"
class FirebaseService: FirebaseMessagingService() {
override fun…

Codist
- 737
- 8
- 23
0
votes
1 answer
How to check if the Android application is running in foreground, in background, or is killed? (API level 27+)
I have this code snippet in my Android application, that checks if the app is killed or not.
static boolean isAppKilled(Context appContext) {
boolean appProcessRunning = false;
ActivityManager activityManager = (ActivityManager)…

Shahid Nauman
- 23
- 7
0
votes
1 answer
Where to find log files for failed push notification?
When I try to create and send a push notificartion to my Android TV, I get following toast message on my TV:
Developer warning for package *.
Failed to post notification on channel "default".
See logs for more details.
Where are those log files…

Ralf Wickum
- 2,850
- 9
- 55
- 103
0
votes
1 answer
AWS SNS Adding Android Platform Endpoints Automatically
All I need is a way to send push notifications to all users on the android app, I task which I thought wouldn't be difficult but here we are.
So I've set up the firebase side, and I have created the platform application on AWS SNS and manually added…

Jack Corse
- 3
- 1
0
votes
2 answers
1 hour gap in push notifications android
I want to put 1 hour gap in push notifications, Like when the user receives one notification then I want to store time in Shared Preferences and when the next notification comes then I want to check if the gap in both notifications is equal to or…

Hilal Ahmad
- 94
- 8
0
votes
0 answers
Not receiving notification when using Azure hub notifications rest api from Postman
I want to integrate Azure push notifications REST API in Mule 4. I have registered my device to the azure portal hub and I am receiving the notification when sending the notification directly from azure portal.
But when using the rest api from…

Ruchita Pandey
- 1
- 1
0
votes
1 answer
Android FCM: FCM display(notification) message loggin when app is in background
I am trying to implemenent some kind of logging for incoming message from FCM. We are using FCM display(notification) messages type. I am trying to find way to log incomming notification when application is in background. I am aware of that if I…

Jan Maděra
- 521
- 3
- 5
- 17
0
votes
1 answer
How start android app with remote message?
I'm new with remote messages in android and I executing this code when receive a message from server. The idea is start the app when the message arrive to app, it's working ok till sdk 26, but in the new sdk versions the message don't start the app.…

Kalin666
- 19
- 3
0
votes
1 answer
Are firebase messaging errors localized?
I am using firebase v4 to push notifications to android devices. When the Send method of the instance of messaging.Client fails, I only get a string error value and I wonder if this error string is localized. If not, I could compare it against e.g.…

Stefan Kuhr
- 13
- 5
0
votes
1 answer
Is it possible to turn on and off different notifications for different things in one app? (iOS, Android)
For notifications for Android/iOS is it possible to turn on and off different notifications for different things in one app?
For example, we send notifications to the user using OneSignal service.
The first one if the user has not visited the…

Dmytro Sobko
- 11
- 1
0
votes
0 answers
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ . How can i fix this
I'm trying to resolve the malformed JSON issue while dealing with the JSON object. It dumps the error on my project's console stating that Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $. How can I fix this?
Send…

Venkatesh Paithireddy
- 41
- 1
- 5
0
votes
1 answer
Do I need to use firebase for Android Push Notifications?
I am developing an application in React Native. I have created push notification keys in OIS. Easy! But for android, I am not using firebase at all, and the google play console is very confusing. I can not find where to create or download the…

Shawn
- 351
- 1
- 3
- 9
0
votes
2 answers
flutter_local_notifications events doesn't work
I'm trying to use flutter_local_notifications with google firebase on flutter. I followed oficial guides, wasted a week on it, but it stiil does not work. Notifications show up but when I tap on them, none of three events (onMessage, onResume,…

Andrew Prudnikov
- 23
- 5
0
votes
1 answer
Could not set user id, jwt rejected: Forbidden: Invalid JWT issuer
I have used Pusher Beams in my app, it has worked great till 2 days ago. It has stopped with this error:
Could not set user id, jwt rejected: Forbidden: Invalid JWT issuer
Any idea how to solve this? and is it related to server side or is in the…

Mona Baharlou
- 1,401
- 1
- 13
- 26
0
votes
0 answers
Start an activity from background without clicking on notification
I'm trying to start an activity when I receive a push notification from firebase but the problem is works when the app is foreground but it does not work when the app is the background or killed.
could someone help me with the problem
Thanks in…

shreyash
- 1
- 1
- 5