Push Notification iOS with Parse - ios

I've been looking around and read the documentation on Parse that has been provided by Parse. I've seen that push notifications may require a backend coding implementation such as REST API & Cloud Code.I would like to know is there any possibilities to restrain to any backend coding activities.
I'm building medical social app which an app requires to push notification to a specific user(doctor sends message privately to specific patient).That being said, do I need backend coding activities?

No, you could use Client Push instead.
Something like that:
let push = PFPush()
push.setMessage("Hello, test push!")
push.sendPushInBackground()
Link to documentation.

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.

iOS push notifications with Firebase FCM to a specific user

I am trying to send notifications to users when something happens in their account, for example a new friend request or follower, or a tag in an image. I have been looking into Firebase FCM to make this happen but can't figure out how to send push notifications to just 1 user, based on some activity in their account.
Is there any way this can be done in FCM or are there are any other methods out there to make this happen? I'm new to iOS dev and push notifications, so any help will be greatly appreciated!
Thanks!
PS: If I do need to make my own server for this, could someone point me to any resources to do this in python? I've seen quite a few posts for APNs servers in PHP, but I don't know PHP that well.
The easiest way is to use Firebase Cloud Functions , I have experience working with it using Javascript then trigger the function when something changes in database. You can also send a http request with the specific device token which you want a push notification to be delivered to, then the function will do it's magic for you. Firebase have ready to use samples from their Github repo.
NB: - For your case if you really want to use Python then check this answer it might help you get started.

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.

How to use Parse IOS SDK with REST Push Notifications from Rails Back-end

I am new to Rails and Parse, currently trying to use Parse Push REST API with an IOS app that has a Rails Back-end.
The Installations are created through REST API calls from the back-end to Parse.
With that pattern is it possible to use the IOS SDK Client methods of PFInstallation ? such as
if (application.applicationIconBadgeNumber != 0) {
application.applicationIconBadgeNumber = 0;
[[PFInstallation currentInstallation] saveInBackground];
}
Or in the case of Push Notifications from REST API, the Parse IOS SDK cannot be used? Do PFInstallations also need to be linked to a PFUser?
Not sure why you're trying to accomplish.
If you're using Parse only to send Push Notification, you shouldn't it too much trouble. You should use either direct notification system (iOS/Android) or Urban Airship type of tool.
If you have a better reason to user Parse then you should first read https://parse.com/docs/rest/guide#push-notifications.
You could manually create installation using the Parse REST API (using the already collected iOS Push Token for exemple, don't know Android, sorry) or if you're using Rails you could use the gem: parse-ruby-client (https://github.com/adelevie/parse-ruby-client#installations).
Then you can use the Parse REST API (https://parse.com/docs/rest/guide#push-notifications-sending-pushes).
Hope it answer your question.

Push Notifications from 3rd party Alert api to individual device

I am creating an app that will get push notifications based on changes in flight status from the flightstats api. A flight rule is created using a json request and then a deliver to which is the url of an https/http service that accepts post data is included in this request. The part I am struggling with is how to get the alert delivered to the device that requested it. Will any 3rd party services such as UrbanAirship work for this? If not how can I implement this? Thanks for the help I am trying to wrap my head around this concept and how to implement it.

Resources