Wrong notification time showing in app (Google FCM) - java

Can somebody help please, I have Google FCM integrated in my Java app so when I send any notification from my admin panel, on receiving notification in app it shows wrong time under notification as 10 hrs. How to fix it?
Google for solutions but nothing found.

Related

OneSignal push notification doesn't wake up android

I'm making a push notification service using OneSignal API, the problem I stuck at is following : Notification is being received perfectly, but it doesn't wake up my android phone. As i searched in documentation, for IOS, you need to pass content_available : true, to wake it up, but what for Android? Are there something else i need to pass, to wake it up? Using nodejs and express as server. Thanks for answers :)

How can i receive notifications in webview?

First I don't mean receiving notifications from OneSignal or Firebase I mean allowing notifications like Google Chrome when you go to website and it ask you to allow receiving notifications. Any help? Thanks in advance.
Firstly that prompt you were saying is just come in website in PC brower/ Mobile Browser or in Android webview.
So, doing in webview, it won't ask you because in mobile there is no such permission you will needs to confirm, by default it will be enabled,
But yes in mobile you do need handle the notification and show in notification tray.
Hope you got the understanding of how it works

Facebook Sharing Fails on Non Admin Devices

I have and android app in which i want to Post image and message to faceboook. I Have completed all Steps including facebook key from console hash key from program and save to facebook console. So when i run App it is posting image and message successfully only from my device in which same facebook account is used. But When i try from any other device it is not posting data to facebook and it gives me error "publish permission [publish action] not accepted by user". i got stuck at this point. please help me. what should i do. I read some articles and got idea that facebook change its policy and app should send to review. but i have not idea what and how necessary credentials required to facebook. please help me i have to complete my app as soon as possible. i am already getting late. i am searching from 2 weeks but at last decided to post question here. please help me. thanks in advance.

How to write APNS FeedBack Service using java?

I am working on sending Push Notifications to an Apple device using Java. For this i am using JavaPNS-2.1.1 library. I have successfully sent push notifications to an apple device. But when i call APNS FeedBack Service it doesnt return anything.
To test the APNS Feedback Service, i deleted the app first from device then sent few notifications to that device. While sending push notifications i called the FeedBack Service every time i sent push notification. But each time it doesnt return anything. The piece of code for FeedBack Service as below,
List<Device> devices = new Vector<Device>();
FeedbackServiceManager feedbackManager = new FeedbackServiceManager();
feedbackManager.setProxy(host,port);
AppleFeedbackServer server = new AppleFeedbackServerBasicImpl(keystore, password, false);
devices.addAll(feedbackManager.getDevices(server));
return devices;
Can anyone help me on where am i getting it wrong? On few Questions here in StackOverflow, i read it works in SandBox environment only, is it true? As i am also working on SandBox here.
What is the exact response does the Feedback Service provides? Will it give me all notifications failed? Or only the device token to which it doesnt delivered the notification? Suppose i sent 3 notifications to only one device, then will it give me all 3 instances of failure or device token of that device with timestamp of last failure?
When should i call the FeedBack Service? Means exactly after how much time i call it when APNS fails to deliver push notifications?
My experience with the sandbox-feedback service is that it only works if you have two different sandbox-push enabled apps on your device. When you uninstall one of them, you'll get something on the feedback service saying the token isn't valid anymore. This was several years ago when I tested it, so I don't know if it still applies.

What about ios push notification disabled for my app?

I'm sending push notifications on devices in Java with Javapns.
When a user uninstalled my app and I send a push to him, I'll find this user in the feedback service, that's ok.
But how it works if the user disabled my app notifications ? How can I know it on server side ?
The app can know it (with UIRemoteNotificationType) and warn the server with a get/post but is there a way to know it on the server ?
The doc isn't clear enough about push notifications sent and user deviced push notifications disabled
You can not. Except for the feedback that you described, you will know nothing. Even if the user installed your app and enabled notifications, it may never get the notification and you won't know about this.

Categories

Resources