push notification to ios device - ios

i am building an application that is two parts. web and mobile.
in brief i want to push a notification for the mobile user when a specific thing is received from the server.
for example, if the web user added a task for the mobile user, then: a notification on the mobile appears to inform the mobile user that there is something new in the app. (just like when using facebook)
any one can help me with implementing this?
Note: i configure my application to be apple to receive notifications and it do so.
this is how to push notification from the ios device to itself:
6.3. From the App
You can also send push notifications directly from a mobile application. Remember that you need to have enabled this feature in the Parse app's settings tab by selecting "Yes" under the heading "Client push enabled?". There are several methods that can be called to send push notifications. You can consult the full list in the iOS API documentation. Here is an example:
// Create our Installation query
PFQuery *pushQuery = [PFInstallation query];
[pushQuery whereKey:#"deviceType" equalTo:#"ios"];
// Send push notification to query
[PFPush sendPushMessageToQueryInBackground:pushQuery
withMessage:#"Hello World!"];
any one knows how this can work ?? i can not import these methods !!!

6 simple steps to delivering push notifications
1. Creating an App ID
2. Generating a Certificate Request
3. Configuring an App ID for Push Notifications
4. Make APNS certificates
5. Upload certificate to Admin panel
6. Create provision profile
Also fallow this tutorial here is good explanation.
Or If you don't have server than you can do this using iOS Push Notifications Using Parse

Related

Sending all users push notification in ios

I want to send push notification to all users who is installed my iOS app. Can you tell me the best and easy process for this?I want to send push without storing or using any specific device token. It will work for all users. I'm using FCM for this but for user segment i don't get push notification. For single device by given fcm token it's working fine.
If you want to send push notification manually to everyone who has your app installed already you should use Firebase cloud messaging.
You can read more here: https://firebase.google.com.
If you find this answer useful/correct, please mark it as correct.

How can we notify mixpanel to send push notification programatically in ios

I have an app which is using Mixpanel. In that app I am using push notification. I could able to send the push notification manually to the registered devices list from Mixpanel profile.
My requirement is user can set reminder for persons who are in his phone book contact. Those persons should get the push notification who are using my app and accepted to recieve push notification. How can I do this if this is possible ?
I did not get any reply to this post. After that I asked to support Team. This is the reply to my question.
What is the use of People Analytics? Can it help to notify Mixpanel to send push notifications? if so how?
People Analytics is a platform that allows you to generate lists of user profiles in Mixpanel and compile unique attributes to it. For example, I created a profile for myself, where my favorite music is classical here. I can then aggregate all users who's favorite music is classical, and send a targeted push notification to them. The goal with Mixpanel People Analytics is to help you deliver targeted notifications to your users. So it's definitely the right platform to help you send push notifications through! Here's how you start storing user profiles, and here how is how you set up push notifications.
How can we send the reminder note to Mixpanel which will be send as push notification to the concerned person?
All through the UI! Through Mixpanel, you set up the push notification to have it look exactly how you want (here) and then you define the targeted criteria of users you'd like to reach.
How can we notify mixpanel to send push notification to the particular person ?
Once again, as long as you can identify those users through the unique attributes (for example, all users who's favorite music is classical) you can send them those notifications (here).
Mixpanel JQL API enables your to retrieve user device tokens via the properties $ios_devices and $android_devices. Using Apple APN and GCM endpoints, i guess your could push your own notifications via your own code with this (i've managed to retrieve the tokens, havent tried actually pushing my own way yet).

Receive push notifications from APNS to Titanium (iOS) App without using Appcelerator Cloudpush (ACS)?

I'm now responsible for a initial release of an app for iOS and Android. The developer that started the work has left the company and we are left with an incomplete Titanium application to finish.
Once this app is finished we do not plan to continue using Titanium.
We need to add push notifications to this app.
We have enabled Android push notifications using the standard GCM push servers using http://iamyellow.net/post/40100981563/gcm-appcelerator-titanium-module or https://marketplace.appcelerator.com/apps/5165#!overview
Does anyone know of a guide to use APNS that connects directly to the Apple servers and does not require sending the notification payload via ACS?
Thanks
The first step is to get the device token from apple to do this you have to register for Push notifications, you will find it in detail here
The process that follows is saving the token to your database and using it to send Push notifications, this blog explains it best.
Hope it helps.

Cant get QuickBlox Sample Modules to work in iOS

I managed to get the SimpleSample Message to work in Android, but cant get it to work in iOS. I am using the injoituser1 and created a provisioning profile incl. APNs. I dont get error messages in the Console, but when I activate the app only the QuickBlox SplashViewController.xib with a spinning loading wheel appears. Same happens withModuleLocator`. It asks for permission to use my location and then only the SplashViewController.xib appears. Had someone the same issues? What could be wrong please?
You can choose what kind of push notification you will generate: android or ios. To send push notification, go to Admin Panel / your App / Messages and choose APNS or GCM. It sends push notification to all ios or all android users, not both. Also you can add tag for group of users you want to send push notifications.
The SimpleSample Message also shows how to send push notifications from user to user.
For correct work of push notifications on QuickBlox:
It doesn't work on simulator.
You must create application in Admin Panel and put your APNS or GCM certificate in: "yourApp/Messages/Settings/".
Put your app credentials from Admin Panel to AppDelegate.
You should have provisioning profile/certificate with enabled Push notifications.
Good luck!

Using Firebase to send and receive push notification for an iOS app

I am create a firebase based chat application for iOS. One of the features is to send push notification to the users in the same chat room (if they are offline).
I can't find a firebase function (for iOS) that can be used to send push notifications to the user.
Is it possible?
Displaying alert badges and notifications on iPhone applications is accomplished through Apple's Push Notification system. Since the application is not running on the user's phone when they receive notifications, the APN will have to be triggered from your server-side code.
You'll probably want to create a server-side module that listens for changes to your chat Firebase. When a message appears for a user that is offline, you'll have to schedule a remote notification with the APN. That latter part has nothing to do with Firebase, but has extensive documentation on Apple's developer web site.
I'm not sure if a web application can display alerts or badges. Otherwise this approach will only work if you create a native wrapper for your Firebase chat application.

Resources