How to send the push notification in ios - php

I'm developing and news app in ios so,I have prepared the restful service in Php for ios application
Now I have to integrated the push notification features in my application ,I have the developer account of ios.
I have already tried so many of examples but didn't get the results
All the time I get the error for the ssl failed, so I want to know is the compulsory to have the ssl certifications to that domain from which I'm using for sending the push notification to the ios devices
Plz share the steps to make this job successful, you suggestion will be appreciated
Thanks

Related

Message between PHP server and Android app

Well let's question, I need to develop for my term paper a messaging system where I can from my site / php server send messages to my android application. I know the question is very broad, but I wanted to know the simplest way to achieve this. Someone could show me some method or API to achieve.
PS: Sorry for english
I thank you
If you want to receive messages in your app while the app is terminated or running you could use the Firebase Cloud Messaging.
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.
Using FCM, you can notify a client app that new email or other data is available to sync. You can send notification messages to drive user reengagement and retention. For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app.

How to send notifications to app users?

I'm new to android and php, I've been watching tutorials and implementing it. I'm making an app in which i want to send push notifications, I've come across many tutorials but some of them were only implemented on a single device where in my case i want to send it to all my app users(students who will be using my app). If there's any way to deliver messages via notification, I've made an app and in Live section, I want to send push notification inside an activity. How do i do it?
I've integrated firebase in my app but it doesn't support multiline messsage's. I'm fairly new to php, If there's any tutorial I could implement please suggest.
You can use Google Cloud Messaging as well as Fire base Cloud messaging
i am sure to help you this link for multiple devices
Google Cloud Messaging
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Firebase Cloud Messaging
http://www.androidhive.info/2016/06/android-firebase-integrate-analytics/

Error:Not Registered - GCM Push Notification

I have done the GCM Integration in iOS client, and i am able to push a notification from DHC - REST client. When i tried my registration token in my backend php it says Error: Not Registered.
Please help me on this, thanks in advance...
Try the following workarounds:
Make sure that the APNS token you're using to register with GCM is valid for the particular server.
Make sure that you are using the right iOS Development Provisioning Profile. Check if you're using the specific profile for your bundle name instead of a a generic one. To get push and background notifications working again:
Remove/Uninstall the application from the test device.
Perform 'clean' in XCode.
Perform 'build' in XCode.
Reinstall the app to the device.
You can check these related SO questions:
GCM IOS NotRegistered issue
GCM push fails with NotRegistered
gcm push notification: first success, then not registered in IOS
Hope it helps! :)

How to send push notification by using php to android

I'm trying to send push notification to my app from PHP server.
but I don't understand certain thing like what I need to make PHP server.
I have my app. I configured every thing.
I have created my app in phonegap.
I have API KEY, Project NO., and Registration Key.
I have follow this articles:
Google Cloud Messaging GCM for Android and Push Notifications
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
Push notifications with PhoneGap and Android
but still not able to create php page to send notifications.
I can send notification using pushbots.
but I want to create my own PHP page to send Push notification.
Please help me with this.
I will really appreciate your help.
Thanks in advance
For a good example of PHP code that send Android push notification look at this gist.
In order to have always the updated version of registration tokens, you should write another php page that receive tokens from devices and write them in a db. Then you can get these tokens before sending push notifications.

How can I test push/C2DM notifications to Android Application?

I need to implement push/C2DM notifications on my website, I installed the Android 3.0 platform sdk, simulator, and I installed the application from an .apk file.
Now, I'm using a ZF powered sites and I want to test my notification, is it possible through the simulator?
I didn't write the actual Android Application, and I'm not able to do anything on it, but what should I know to use it with PHP?
Thank you
You cannot push C2DM messages to third-party applications - not without their active participation. Google's technical implementation explicitly forbids that.
An app specifies a Google account it wishes to receive notifications from; in order to send notifications, you need to log on with a Google account. For everything to work, the account has to be the same. So unless you know what account does the app wants messages from, and you know the password to that account, no C2DM for you.

Categories