Sending an Image in iOS Push-Notifications through Firebase Cloud Messaging Console - ios

I am sending push-notifications to my iOS app users through Firebase Cloud Messaging Console. After I input the image URL, the image is displayed on the preview. But, after I publish the notification, I am not able to see the Image in the push-notification. Can anyone please help me to resolve this issue? Appreciate your help🙏

You need to implement Notification Service Extension as it shown where: https://docs.leanplum.com/docs/adding-images-to-push-notifications#ios-setup

Related

How to go about IOS Push Notifications?

Im currently developing an app in Swift. I'm at the last stage of the app where I just need to integrate push notifications to the lock screen when certain user actions occur.
I'm going for something like how Instagram sends a push notification when a new user follows you or likes your post.
My entire backend is using firebase, and i've looked into firebase cloud messaging and I dont know if it has the capability to perform notifications like this.
I've watched tutorials and read documentation and I know you can push notifications to users from the console but I'm looking for notifications to be published and pushed based off specific user actions.
I know this is a very broad questions so what I want to know is:
A) Are notifications like instagram possible through Firebase cloud messeging?
B) If not, can you point me in the direction of how to figure this out?
Thank you!
A) Are notifications like instagram possible through Firebase cloud messaging?
Yes
Firebase send the push to APNS first then APNS send push notification to iOS devices.
If user 'A' do any action then that specific action will be transferred/send to staging/production server via apis. Based on your business logic staging/production server will send push notification to users(FCM token).
I hope this is helpful or you can explain the exact issue your are facing.

Track Firebase notification for iOS

Is there any way to see number of successfully sent and failed push notifications in Firebase Cloud Messaging (FCM) ? I can see the messages sent using the Firebase console but I need to track the number of messages sent via the web app to the devices.
Google explains how to get access to statistics on android https://support.google.com/googleplay/android-developer/answer/2663268. But is there a similar way for iOS?
In one word yes, You can do it.
Firebase API have a message_id as a response parameter. It's indicate notification is deliver or not.
message_id: String specifying a unique ID for each successfully processed message.
Please find below attached screenshots.
Please do refer this reference.
Update:
You can not track user activity for notification in iOS application. If you want to
implement above functionality then call any custom API and store required data into your
database. You can not get any history directly.

Push Notifications with Firebase and OneSignal

I'm looking for some guidance.
I'm using Firebase as the backend server for an app I'm building and I would like to alert users when somebody has either liked or disliked some content the user generated.
I understand that Firebase offers cloud messaging through which I can target very specific users and send updates to them; I have implemented that functionality. However, I would like to send updates based on changes in the database, and, as far as I understand, FCM is not built for this purpose.
I have come across OneSignal and it seems promising. Has anybody implemented this with Firebase and could it do what I'm looking for?
Thanks!
I have it set upon such a way that when a message is send by a user to another user, a notification is also send via OneSignal. You just need to store the OneSignal userId in a node with the firebase user UID.
I you like someone's content, then that would also send a notification out directly to the other user.

Notification in Chat app using Firebase

I am creating demo for private chat using Firebase sdk. I am using this github demo. From this I am able to do chat but how can I get notification when my app is closed and someone send me message on it.
I am not able to find any solution after doing lots of RnD in Firebase, so please help me if anybody knows it solution.

Skpsmtpmessage API

My application need to send mail on background without display any mail compose screen so i got suggestion as skpsmtpmessage api .shall i use this api for my application and any apple rejection by using this api.I am new to ios application development so tell me the way to use third party api in applicatiion without apple rejection.can any one help me.
As Sudha and MarJamRob answered, your app can be rejected if you are sending mails in background but there is a workaround to this.
You can create a web method which takes the mail ids and content to be mailed as inputs and mails to the intended email ids. Call this method from within your iOS app with appropriate parameters. In this way you can fulfill your purpose without a risk of rejection as your app is not mailing in background but you are only giving a call to remote method!
You will get an Apple rejection for sending background e-mail without using the compose screen, or an in-app compose screen (g-mail).
Yes, your application will be rejected from apple because it is illegal to sending background email without display mail compose screen or without user interaction ...
...

Resources