Firebase push notification not working in IOS - swift

My Swift application has push notifications being sent from the app server. The notifications were coming through until a couple weeks ago. All of a sudden they stopped coming through. When I tried sending messages from the firebase console to the registration token of my iPhone , I get Unregistered Registration Token error. I also get the UnregisteredToken error when sending a message to the device from pushtry.com.
I have tried deleting the token and refreshing/recreating it in my swift code. I have also tried uninstalling/installing the application several times.
My IOS app version is 11.1.2. Xcode version 9.
I tried sending messages using the Firebase console to the old tokens where I used to be able to send notifications before and now they are also failing. I get the same error about the token being unregistered.
This problem is not happening in the android version of my code. I am able to successfully send notifications to my android device.

Related

FCM token keeps changing after killing the application and reopen it

Firebase notifications works in my Flutter app, but when I kill the app and reopen it the FCM token changes.
As I know the token won't change unless the user deletes the app but in my case, the notification was not received because the token is changed.
What is the reason and how to solve it?
The FCM token changes when the app is reinstalled or the data is cleared. To receive notifications even after the app is reinstalled or data is cleared, you should store the token on the server and use it to send notifications. Additionally, you can also retrieve the latest token when the app is launched and send it to the server, so that the server has the most recent token to send notifications to.

How To Send Firebase Push Notification from one app to another app connect to same project

How To Send Firebase Push Notification from one app to another app connect to same project
I have Used http to send notification to specific device using token but i am unable to send to another app
I have Two App with Same Firebase project
One is Admin And Other is client
I want to send push notification from client app to Admin is this possible if yes than how.
When you have two apps installed on a single device, each of them will have a different FCM token, regardless of whether they part of the same Firebase project. So you can send a message to a specific app by sending it to the token for that app.

Missing app from AppGallery after publishing update

I have sent an update of my App to Huawei a few days ago. Verification went well, no remarks by Huawei side. Yesterday's update has been published, but the app was missed from appgallery. The update did not come to users. They can't find an app throw search. But the link to the app is working on a desktop browser. On phones can't find app across AppGallery. Huawei did not send me any info. Can anyone help?
According to the confirmation with the review team, when they try to log in your app for the first time on the HMS phone (mate30, HMS, emui11.0.0), the following error message is always displayed before login.
Although they could log in after loading the app for a period of time, but this problem does not occur on the GMS phone(mate20pro).
To solve the issue, you are recommended to test your app in HMS devices to reproduce and optimize its incompatibility issues against non-GMS devices.

Push notification messages are not received on iPhone when sent from appery

I have created an ionic app that can receive push notifications in Appery. I am getting the success code block executed and the device DB get updated with the device id.
But the notification is not received on device, but the status shows as sent !!
For Ionic you should call PushRegisterDevice Service when your app starts,
see https://docs.appery.io/docs/pushnotifications-quickstart-tutorial-ionic
You should see the deviceId of your phone added to Devices collection
For iPhone you should have a valid iOS certificate for push notifications with .p12 extension, it should be uploaded to Appery at Push Notifications page for your project, Settings > iOS settings

IBM MobileFirst Push Notification in IPhone - when the app is closed, pushNotificationReceived method is not triggering for the received notification

I am developing an application for IPhone, where I have to store all the notifications coming to the app using JSON Store.
In IBM Mobilefirst Push Notifications API, pushNotificationReceived is triggered when any notification is received in the app. So using this method, I can able to store the notifications in JSON Store.
When the app is closed [Not running in the background], the notification is successfully sent to the device.
But when I open the application by clicking the received notification, pushNotificationReceived method is triggering only for the notifications received when the app is closed.
Is this the default behavior of IBM MobileFirst?
If so, is there any work around to solve this issue.
I have seen that there are native API's available for handling the received notifications. Is that the only way to solve this?
Or Is there any native listener available only for receiving the notifications when the app is closed?
If tapping the notification in the Notification Center, the pushNotificationReceived should be called.
If tapping the app icon after a notification was received, the pushNotificationReceived API will not be called.
This is the expected behavior in iOS.
If (1) is not working for you as well, I suggest that you will test the sample Hybrid app to see whether it works for fails for you there as well - it should work: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/push-notifications-in-hybrid-applications/event-source-notifications-in-hybrid-applications/