Categories
Development

I can’t send a Firebase Cloud Messaging push notification to my app i followed the steps but got nowhere

I followed the steps and created an APN key and uploaded it, however it doesn’t seem to recognize my app whenever i try to send a message through the cloud messaging part of firebase it says (0% of potential users are eligible for this campaign: 0). This is my entire app delegate file.My app can […]

Categories
Development

How can I update users FCM token if their current one no longer works?

I discovered an issue with my application, certain users stopped receiving push notifications for awhile. Their FCM token that is associated with their account seems to either have expired or they need a new one. I tested by deleting the app on my device and I was issued a new fcm token in Xcode. I […]

Categories
Development

Open link in webview, using firebase in app messaging

My app is a webview app. Please, explain me, how to open link in my webview app when I press “Открыть” button? Now, when I press the button, link redirects and opens in Safari. The message appears via firebase in app messaging. Thank you. import JXWebViewController import UIKit import Firebase import UserNotifications import FirebaseInAppMessaging @UIApplicationMain […]

Categories
Development

How to run the function without showing the push message when it is sent?

I have a problem to solve with a push message. If I send a push message to Firebase,I will receive it well and I will see the message well. And when I click on the push message, the userNotificationCenter function in the AppDelegate file is executed and the list of actions in the function is […]

Categories
Development

How to run the function without showing the push message when it is sent?

I have a problem to solve with a push message. If I send a push message to Firebase,I will receive it well and I will see the message well. And when I click on the push message, the userNotificationCenter function in the AppDelegate file is executed and the list of actions in the function is […]

Categories
Development

customized action doesn’t appear in push notification

the action when i slide the notification to the left doesn’t appear as shown in the image, i only can access the action through pressing the view button Link to the above screen grab if #available(iOS 10.0, *) { // For iOS 10 display notification (sent via APNS) UNUserNotificationCenter.current().delegate = self as! UNUserNotificationCenterDelegate let authOptions: […]

Categories
Development

Why can’t I receive device-specific push messages?

I am currently testing the ios push message through FireBase. My problem is that the app-wide push message works normally. However, when sending over a device token to send individually by device, it is not sent. What’s the problem? AppDelegate import UIKit import UserNotifications import Firebase import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate […]

Categories
Development Swift

Why can’t I get a push message in Swift5?

I am currently trying to get a push message. However, you cannot receive a push message. What am I missing? AppDelegate import UIKit import UserNotifications import Firebase import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { self.window = UIWindow(frame: UIScreen.main.bounds) // Override […]

Categories
Development

IOS FCM unreceived data message

I am using FCM to send custom data messages to iOS mobile app, I did not receive any messages if the payload is being like this : { content_available: true, data : { title : message_title, body : message_body, } } but I receive the notification if I add payload like that : { content_available: […]

Categories
Development

IOS FCM unreceived data message

I am using FCM to send custom data messages to iOS mobile app, I did not receive any messages if the payload is being like this : { content_available: true, data : { title : message_title, body : message_body, } } but I receive the notification if I add payload like that : { content_available: […]